fix regression
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14078 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
764b7958bd
commit
469f1bf989
|
@ -69,11 +69,13 @@ static switch_status_t get_upnp_pubaddr(char *pub_addr)
|
|||
if (UPNP_GetExternalIPAddress(nat_globals.urls.controlURL,
|
||||
nat_globals.data.servicetype,
|
||||
pub_addr) == UPNPCOMMAND_SUCCESS) {
|
||||
if (!strcmp(pub_addr, "0.0.0.0") || switch_strlen_zero(pub_addr)) {
|
||||
if (!strcmp(pub_addr, "0.0.0.0") || switch_strlen_zero_buf(pub_addr)) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR,
|
||||
"uPNP Device (url: %s) returned an invalid external address of '%s'. Disabling uPNP\n", nat_globals.urls.controlURL, pub_addr);
|
||||
return SWITCH_STATUS_GENERR;
|
||||
}
|
||||
} else {
|
||||
return SWITCH_STATUS_GENERR;
|
||||
}
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue