From af4c52f2bfea1d65f6957053b0696f62e079ff27 Mon Sep 17 00:00:00 2001 From: Lorenzo Miniero Date: Thu, 16 Nov 2023 17:09:31 +0100 Subject: [PATCH] Fixed typo --- src/plugins/janus_nosip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/janus_nosip.c b/src/plugins/janus_nosip.c index 610a622e16..1e97c32469 100644 --- a/src/plugins/janus_nosip.c +++ b/src/plugins/janus_nosip.c @@ -2034,7 +2034,7 @@ static int janus_nosip_bind_socket(int fd, int port) { (janus_network_address_is_null(&janus_network_local_ip) || janus_network_local_ip.family == AF_INET6); socklen_t addrlen = use_ipv6_address_family? sizeof(struct sockaddr_in6) : sizeof(struct sockaddr_in); struct sockaddr_storage rtp_address = { 0 }; - if(!ipv6_disabled) { + if(use_ipv6_address_family) { struct sockaddr_in6 *addr = (struct sockaddr_in6 *)&rtp_address; addr->sin6_family = AF_INET6; addr->sin6_port = htons(port);