From: Nishi Date: Sun, 20 Oct 2024 20:52:41 +0000 (+0000) Subject: fix ipv6 port [release 2.05A] X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=65158ea39b5863a60fabf0c18d30c328ca82d4ad;p=tewi.git fix ipv6 port [release 2.05A] git-svn-id: file:///raid/svn-personal/tewi/trunk@392 8739d7e6-ffea-ec47-b151-bdff447c6205 --- diff --git a/README b/README index 42b0e2c..b749b19 100644 --- a/README +++ b/README @@ -1,5 +1,5 @@ -Tewi HTTPd version 2.05 +Tewi HTTPd version 2.05A Original by Nishi diff --git a/Server/server.c b/Server/server.c index 432c686..1ccf9c2 100644 --- a/Server/server.c +++ b/Server/server.c @@ -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; diff --git a/Server/tw_version.h b/Server/tw_version.h index 2d74233..4ebe76f 100644 --- a/Server/tw_version.h +++ b/Server/tw_version.h @@ -7,8 +7,8 @@ extern "C" { #endif -#define TW_VERSION "2.05\0" -#define TW_VERSION_TEXT "Tewi HTTPd version 2.05" +#define TW_VERSION "2.05A\0" +#define TW_VERSION_TEXT "Tewi HTTPd version 2.05A" const char* tw_get_version(void); const char* tw_get_platform(void);