FS-2778: force_local_ip_v4 / _v6 not handled properly in switch_find_local_ip

This commit is contained in:
Brian West 2010-10-13 16:51:46 -05:00
parent 54dcb64a4d
commit f42c90365c
1 changed files with 2 additions and 0 deletions

View File

@ -1071,10 +1071,12 @@ SWITCH_DECLARE(switch_status_t) switch_find_local_ip(char *buf, int len, int *ma
case AF_INET:
if (force_local_ip_v4) {
switch_copy_string(buf, force_local_ip_v4, len);
return SWITCH_STATUS_SUCCESS;
}
case AF_INET6:
if (force_local_ip_v6) {
switch_copy_string(buf, force_local_ip_v6, len);
return SWITCH_STATUS_SUCCESS;
}
default:
break;