From: Nishi Date: Mon, 23 Sep 2024 11:03:55 +0000 (+0000) Subject: show vhost instead of hostname if it can X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=6630ff68e7ab6c28729ed310dacd7e9a239d9f9d;p=tewi.git show vhost instead of hostname if it can git-svn-id: file:///raid/svn-personal/tewi/trunk@136 8739d7e6-ffea-ec47-b151-bdff447c6205 --- diff --git a/Server/server.c b/Server/server.c index 5f09b4b..2337ed5 100644 --- a/Server/server.c +++ b/Server/server.c @@ -513,11 +513,11 @@ 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; } } + name = host; cm_log("Server", "Hostname is `%s', port is `%d'", host, port); struct tw_config_entry* vhost_entry = tw_vhost_match(host, port); for(i = 0; i < config.module_count; i++) {