auto ip fix for w32
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4002 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
23bc4a6c9a
commit
8e17a9b865
|
@ -67,6 +67,9 @@ SWITCH_DECLARE(switch_status_t) switch_find_local_ip(char *buf, int len, int fam
|
|||
case AF_INET6:
|
||||
base = "52.2d.94.d1";
|
||||
break;
|
||||
default:
|
||||
base = "127.0.0.1";
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
|
@ -78,10 +81,10 @@ SWITCH_DECLARE(switch_status_t) switch_find_local_ip(char *buf, int len, int fam
|
|||
if (WSAIoctl(tmp_socket,
|
||||
SIO_ROUTING_INTERFACE_QUERY,
|
||||
address_info->ai_addr,
|
||||
address_info->ai_addrlen,
|
||||
(DWORD)address_info->ai_addrlen,
|
||||
&l_address,
|
||||
sizeof(l_address),
|
||||
&l_address_len,
|
||||
(LPDWORD)&l_address_len,
|
||||
NULL,
|
||||
NULL)) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue