Subversion Repositories Tewi

Rev

Rev 389 | Rev 393 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 389 Rev 392
Line 1... Line 1...
1
/* $Id: server.c 389 2024-10-20 20:23:36Z nishi $ */
1
/* $Id: server.c 392 2024-10-20 20:52:41Z nishi $ */
2
 
2
 
3
#define SOURCE
3
#define SOURCE
4
 
4
 
5
#include "../config.h"
5
#include "../config.h"
6
 
6
 
Line 638... Line 638...
638
		for(i = 0; vhost[i] != 0; i++) {
638
		for(i = 0; vhost[i] != 0; i++) {
639
			if(vhost[i] == ':') {
639
			if(vhost[i] == ':') {
640
				host[i] = 0;
640
				host[i] = 0;
641
				port = atoi(host + i + 1);
641
				port = atoi(host + i + 1);
642
				break;
642
				break;
-
 
643
			}else if(vhost[i] == '['){
-
 
644
				for(; vhost[i] != 0 && vhost[i] != ']'; i++);
643
			}
645
			}
644
		}
646
		}
645
		name = host;
647
		name = host;
646
		cm_log("Server", "Hostname is `%s', port is `%d'", host, port);
648
		cm_log("Server", "Hostname is `%s', port is `%d'", host, port);
647
		vhost_entry = tw_vhost_match(host, port);
649
		vhost_entry = tw_vhost_match(host, port);