From: Nishi Date: Mon, 23 Sep 2024 11:02:59 +0000 (+0000) Subject: show vhost instead of hostname if it can X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=bf01f1fc46d16834cce5d255a655ec5d1bffc890;p=tewi.git show vhost instead of hostname if it can git-svn-id: file:///raid/svn-personal/tewi/trunk@135 8739d7e6-ffea-ec47-b151-bdff447c6205 --- diff --git a/Server/server.c b/Server/server.c index 2d21175..5f09b4b 100644 --- a/Server/server.c +++ b/Server/server.c @@ -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; } diff --git a/Server/tw_version.h b/Server/tw_version.h index 02f0ed2..7ef9f5c 100644 --- a/Server/tw_version.h +++ b/Server/tw_version.h @@ -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);