| 341 |
341 |
| 342 // search for VirtualServer |
342 // search for VirtualServer |
| 343 //int b = 0; |
343 //int b = 0; |
| 344 CxMapIterator map_iter = cxMapIteratorValues(serverconfig->host_vs); |
344 CxMapIterator map_iter = cxMapIteratorValues(serverconfig->host_vs); |
| 345 cx_foreach(VirtualServer *, vs, map_iter) { |
345 cx_foreach(VirtualServer *, vs, map_iter) { |
| 346 if(!cx_strcmp(vsname, (cxstring){vs->name.ptr, vs->name.length})) { |
346 if(!cx_strcmp(vsname, cx_strn(vs->name.ptr, vs->name.length))) { |
| 347 listener->default_vs.vs = vs; |
347 listener->default_vs.vs = vs; |
| 348 break; |
348 break; |
| 349 } |
349 } |
| 350 } |
350 } |
| 351 } |
351 } |