- Timestamp:
- Sep 13, 2024, 10:38:57 PM (2 months ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Server/config.c
r12 r13 17 17 int i; 18 18 for(i = 0; i < config.vhost_count; i++) { 19 if(strcmp(config.vhosts[i].name, name) == 0 && config.vhosts[i].port == port) {19 if(strcmp(config.vhosts[i].name, name) == 0 && (config.vhosts[i].port == -1 ? 1 : config.vhosts[i].port == port)) { 20 20 return &config.vhosts[i]; 21 21 } … … 79 79 int i; 80 80 current->name = cm_strdup(vhost); 81 current->port = 80;81 current->port = -1; 82 82 for(i = 0; vhost[i] != 0; i++) { 83 83 if(vhost[i] == ':') { -
trunk/Server/server.c
r12 r13 128 128 void tw_server_pass(int sock, bool ssl, int port) { 129 129 #endif 130 char* name = config.hostname; 131 130 132 SSL_CTX* ctx = NULL; 131 133 SSL* s = NULL; -
trunk/example.conf
r12 r13 8 8 SSLCertificate cert.pem 9 9 10 BeginVirtualHost nishinbsd-ssd :844310 BeginVirtualHost nishinbsd-ssd 11 11 EndVirtualHost
Note:
See TracChangeset
for help on using the changeset viewer.