FS-2778: force_local_ip_v4 / _v6 not handled properly in switch_find_local_ip
This commit is contained in:
parent
54dcb64a4d
commit
f42c90365c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue