403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.238
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/net/csync2/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/net/csync2/files/patch-csync2.c
--- csync2.c.orig	2013-05-02 12:58:04 UTC
+++ csync2.c
@@ -256,7 +256,7 @@ static int csync_server_bind(void)
 	struct addrinfo hints;
 	struct addrinfo *result, *rp;
 	int save_errno;
-	int sfd = -1, s, on = 1;
+	int sfd = -1, s, off = 0, on = 1;
 	memset(&hints, 0, sizeof(struct addrinfo));
 	hints.ai_family = AF_UNSPEC;	/* Allow IPv4 or IPv6 */
 	hints.ai_socktype = SOCK_STREAM;
@@ -284,6 +284,9 @@ static int csync_server_bind(void)
 			goto error;
 		if (setsockopt(sfd, IPPROTO_TCP, TCP_NODELAY, &on, (socklen_t) sizeof(on)) < 0)
 			goto error;
+		if (rp->ai_family == AF_INET6)
+			if (setsockopt(sfd, IPPROTO_IPV6, IPV6_V6ONLY, &off, (socklen_t) sizeof(off)) < 0)
+				goto error;
 
 		if (bind(sfd, rp->ai_addr, rp->ai_addrlen) == 0)
 			break;	/* Success */

Youez - 2016 - github.com/yon3zu
LinuXploit