--- Server/server.c 2024/10/20 20:23:51 1.4 +++ Server/server.c 2024/10/20 20:52:55 1.5 @@ -1,4 +1,4 @@ -/* $Id: server.c,v 1.4 2024/10/20 20:23:51 nishi Exp $ */ +/* $Id: server.c,v 1.5 2024/10/20 20:52:55 nishi Exp $ */ #define SOURCE @@ -640,6 +640,8 @@ int tw_server_pass(void* ptr) { host[i] = 0; port = atoi(host + i + 1); break; + }else if(vhost[i] == '['){ + for(; vhost[i] != 0 && vhost[i] != ']'; i++); } } name = host;