Changeset 13 in Main for trunk/Server/config.c
- Timestamp:
- Sep 13, 2024, 10:38:57 PM (2 months ago)
- File:
-
- 1 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] == ':') {
Note:
See TracChangeset
for help on using the changeset viewer.