mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
Fixed handling of [] IPv6 addresses in hostnames
This commit is contained in:
1 parent
271d9bb91a
commit
74772de341
1 file changed
+1
-1
+1
-1
@@ -250,7 +250,7 @@ int parsehostname(char *hostname, struct clientparam *param, unsigned short port
|
||||
if(sp){
|
||||
port = atoi(sp+1);
|
||||
}
|
||||
getip46(param->srv->family, param->hostname + (se!=0), (struct sockaddr *)¶m->req);
|
||||
getip46(param->srv->family, param->hostname, (struct sockaddr *)¶m->req);
|
||||
if(se) *se = ']';
|
||||
if(sp) *sp = ':';
|
||||
*SAPORT(¶m->req) = htons(port);
|
||||
|
||||
Reference in new issue
Block a user