Bug 860397: turn_unittest checks that TURN_SERVER_ADDRESS is IP#s not FQDN r=rjesup

This commit is contained in:
Jan-Ivar Bruaroey 2013-06-05 18:01:07 -04:00
parent db3f6c871b
commit e119b4ec5d

View File

@ -345,7 +345,15 @@ int main(int argc, char **argv)
"environment variables to run this test\n");
return 0;
}
{
nr_transport_addr addr;
if (nr_ip4_str_port_to_transport_addr(g_turn_server.c_str(), 3478,
IPPROTO_UDP, &addr)) {
printf("Invalid TURN_SERVER_ADDRESS \"%s\". Only IP numbers supported.\n",
g_turn_server.c_str());
return 0;
}
}
test_utils = new MtransportTestUtils();
NSS_NoDB_Init(nullptr);
NSS_SetDomesticPolicy();