]> Nishi Git Mirror - tewi.git/commitdiff
show vhost instead of hostname if it can
authorNishi <nishi@nishi.boats>
Mon, 23 Sep 2024 11:02:59 +0000 (11:02 +0000)
committerNishi <nishi@nishi.boats>
Mon, 23 Sep 2024 11:02:59 +0000 (11:02 +0000)
git-svn-id: file:///raid/svn-personal/tewi/trunk@135 8739d7e6-ffea-ec47-b151-bdff447c6205

Server/server.c
Server/tw_version.h

index 2d21175860a721b6a33a778653792f67f2eee242..5f09b4bbb0e9d699f2bb7718c512ccbb43024ec4 100644 (file)
@@ -502,7 +502,7 @@ int32_t tw_server_pass(void* ptr) {
                                        cmtime = mktime(&tm);
                                        cmtime -= (btm->tm_hour * 60 + btm->tm_min) * 60;
 #else
-                                               cmtime = timegm(&tm);
+                                       cmtime = timegm(&tm);
 #endif
                                }
                        }
@@ -513,6 +513,7 @@ int32_t tw_server_pass(void* ptr) {
                for(i = 0; vhost[i] != 0; i++) {
                        if(vhost[i] == ':') {
                                host[i] = 0;
+                               name = host;
                                port = atoi(host + i + 1);
                                break;
                        }
index 02f0ed25daa23457676c00cf5da0abf4389fefff..7ef9f5c6c93380f483d188f435b2f0de7ae836d8 100644 (file)
@@ -3,7 +3,7 @@
 #ifndef __TW_VERSION_H__
 #define __TW_VERSION_H__
 
-#define TW_VERSION "1.04C\0"
+#define TW_VERSION "1.05\0"
 
 const char* tw_get_version(void);
 const char* tw_get_platform(void);