1
Yate bugs / Re: Localhost as public...
« on: January 25, 2018, 07:40:11 AM »
That was all set....
Think we found it in the code at the right spot, just didn't have time to fix it:
MAY need (since 127.0.0.0 is reserved):
But we haven't tested as the windows guy couldn't compile yate in time
Think we found it in the code at the right spot, just didn't have time to fix it:
Code: [Select]
static bool isPrivateAddr(const String& host)
{
if (host.startsWith("192.168.") || host.startsWith("169.254.") || host.startsWith("10."))
return true;
String s(host);
if (!s.startSkip("172.",false))
return false;
int i = 0;
s >> i;
return (i >= 16) && (i <= 31) && s.startsWith(".");
}
MAY need (since 127.0.0.0 is reserved):
Code: [Select]
if (host.startsWith("192.168.") || host.startsWith("169.254.") || host.startsWith("10.") || host.startsWith("127.0.0."))
return true;
But we haven't tested as the windows guy couldn't compile yate in time