Roxen.git
/
server
/
base_server
/
module.pike
version
»
Context lines:
10
20
40
80
file
none
3
Roxen.git/server/base_server/module.pike:1:
// This file is part of Roxen WebServer. // Copyright © 1996 - 2004, Roxen IS.
-
// $Id: module.pike,v 1.
218
2005/
04
/
22
18
:
09
:
16
wellhard Exp $
+
// $Id: module.pike,v 1.
219
2005/
05
/
11
12
:
59
:
56
wellhard Exp $
#include <module_constants.h> #include <module.h> #include <request_trace.h> constant __pragma_save_parent__ = 1; inherit "basic_defvar"; mapping(string:array(int)) error_log=([]);
Roxen.git/server/base_server/module.pike:286:
werror(" URL: %s\n", url); #endif mapping url_info = roxen.urls[url]; if(!url_info || !url_info->port || url_info->conf != _my_configuration) continue; Protocol p = url_info->port; #ifdef LOCATION_URL_DEBUG werror(" Protocol: %s\n", p); #endif Standards.URI uri = Standards.URI(url);
-
uri->fragment = "ip="
+p
->ip;
+
uri->fragment = "ip="
+(p
->ip
? p->ip: "127.0.0.1")
;
if(has_value(uri->host, "*") || has_value(uri->host, "?")) if(glob(uri->host, hostname)) uri->host = hostname; else { if(!candidate_uri) { candidate_uri = uri; candidate_uri->host = hostname; } continue; }