diff --git a/src/switch_utils.c b/src/switch_utils.c index ea5bd37051..4a0b818a6a 100644 --- a/src/switch_utils.c +++ b/src/switch_utils.c @@ -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;