Compare commits
1 Commits
burble.dn4
...
V_2_5_fixe
Author | SHA1 | Date | |
---|---|---|---|
|
01e4588b94 |
@ -170,7 +170,7 @@ GNet::Address GNet::DnsBlock::nameServerAddress( const std::string & s )
|
||||
bool GNet::DnsBlock::isDomain( G::string_view s ) noexcept
|
||||
{
|
||||
if( G::Str::isNumeric(s,true) ) return false ;
|
||||
G::string_view tld = G::Str::tailView( s , "."_sv ) ;
|
||||
G::string_view tld = G::Str::tailView( s , s.rfind('.') ) ;
|
||||
return tld.empty() || ( G::Str::isSimple(tld) && !G::Str::isNumeric(tld) ) ;
|
||||
}
|
||||
|
||||
|
@ -90,7 +90,7 @@ void GNet::Interfaces::loadImp( ExceptionSink es , std::vector<Item> & list )
|
||||
if( rc == ERROR_BUFFER_OVERFLOW )
|
||||
{
|
||||
buffer.resize( size ) ;
|
||||
IP_ADAPTER_ADDRESSES * p = G::buffer_cast<IP_ADAPTER_ADDRESSES*>( buffer ) ;
|
||||
p = G::buffer_cast<IP_ADAPTER_ADDRESSES*>( buffer ) ;
|
||||
rc = GetAdaptersAddresses( AF_UNSPEC , flags , nullptr , p , &size ) ;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user