Explorar o código

fixed parent IPv6 connect proxy

z3APA3A %!s(int64=10) %!d(string=hai) anos
pai
achega
7f90b6eae2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/auth.c

+ 1 - 1
src/auth.c

@@ -50,7 +50,7 @@ int clientnegotiate(struct chain * redir, struct clientparam * param, struct soc
 			}
 			else {
 				if(*SAFAMILY(addr) == AF_INET6) buf[len++] = '[';
-				len += myinet_ntop(AF_INET, SAADDR(addr), (char *)buf+len, 256);
+				len += myinet_ntop(*SAFAMILY(addr), SAADDR(addr), (char *)buf+len, 256);
 				if(*SAFAMILY(addr) == AF_INET6) buf[len++] = ']';
 			}
 			len += sprintf((char *)buf + len,