]> Nishi Git Mirror - tewi.git/commitdiff
fix ipv6 port [release 2.05A]
authorNishi <nishi@nishi.boats>
Sun, 20 Oct 2024 20:52:41 +0000 (20:52 +0000)
committerNishi <nishi@nishi.boats>
Sun, 20 Oct 2024 20:52:41 +0000 (20:52 +0000)
git-svn-id: file:///raid/svn-personal/tewi/trunk@392 8739d7e6-ffea-ec47-b151-bdff447c6205

README
Server/server.c
Server/tw_version.h

diff --git a/README b/README
index 42b0e2ca158b0b0ee4dc4bc670fd0d755ab5f159..b749b19f0cc475821d12cb7b03744d8128d4784b 100644 (file)
--- a/README
+++ b/README
@@ -1,5 +1,5 @@
 
-Tewi HTTPd version 2.05
+Tewi HTTPd version 2.05A
 
 Original by Nishi <nishi@nishi.boats>
 
index 432c686be89b3e10c60f0b88c653440a1c01d4cc..1ccf9c2f78222851a4bbbe9aae9ec45d83948bb8 100644 (file)
@@ -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;
index 2d74233cd6e9638702922f4551e48ebfd9d8e650..4ebe76f1a6d6db3584ead658ef6ebb85bdb4242d 100644 (file)
@@ -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);