From f42c90365cb253a7956e90e5620a0074e5712936 Mon Sep 17 00:00:00 2001 From: Brian West Date: Wed, 13 Oct 2010 16:51:46 -0500 Subject: [PATCH] FS-2778: force_local_ip_v4 / _v6 not handled properly in switch_find_local_ip --- src/switch_utils.c | 2 ++ 1 file changed, 2 insertions(+) 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;