mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
Allow hostnames in parent
This commit is contained in:
1 parent
782878b5b4
commit
13979b5df4
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -609,7 +609,7 @@ unsigned long getip46(int family, unsigned char *name, struct sockaddr *sa){
|
||||
if(detect != -1){
|
||||
if(family == 4 && detect != AF_INET) return 0;
|
||||
*SAFAMILY(sa) = (family == 6)? AF_INET6 : detect;
|
||||
return inet_pton(*SAFAMILY(sa), (char *)name, SAADDR(sa))? *SAFAMILY(sa) : 0;
|
||||
return inet_pton(*SAFAMILY(sa), (char *)name, SAADDR(sa))>0? *SAFAMILY(sa) : 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user