mirror of
https://github.com/3proxy/3proxy.git
synced 2026-10-25 09:32:02 +00:00
Fixed handling of [] IPv6 addresses in hostnames
This commit is contained in:
parent
271d9bb91a
commit
74772de341
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue