mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-29 14:44:17 +00:00
[core] Enable MSRP over IPv6
* [core] Enable MSRP over IPv6 * [core] SWITCH_SO_IPV6_V6ONLY socket option
This commit is contained in:
1 parent
301f113037
commit
5ce4855a1e
4 files changed
+16
-5
No files matched your search
@@ -2971,7 +2971,7 @@ SWITCH_MODULE_RUNTIME_FUNCTION(mod_event_socket_runtime)
|
||||
#ifdef WIN32
|
||||
/* Enable dual-stack listening on Windows (if the listening address is IPv6), it's default on Linux */
|
||||
if (switch_sockaddr_get_family(sa) == AF_INET6) {
|
||||
rv = switch_socket_opt_set(listen_list.sock, 16384, 0);
|
||||
rv = switch_socket_opt_set(listen_list.sock, SWITCH_SO_IPV6_V6ONLY, 0);
|
||||
if (rv) goto sock_fail;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -1539,7 +1539,7 @@ static void *SWITCH_THREAD_FUNC xmpp_listener_thread(switch_thread_t *thread, vo
|
||||
#ifdef WIN32
|
||||
/* Enable dual-stack listening on Windows (if the listening address is IPv6), it's default on Linux */
|
||||
if (switch_sockaddr_get_family(sa) == AF_INET6) {
|
||||
rv = switch_socket_opt_set(listener->socket, 16384, 0);
|
||||
rv = switch_socket_opt_set(listener->socket, SWITCH_SO_IPV6_V6ONLY, 0);
|
||||
if (rv) goto sock_fail;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user