Roxen.git / server / base_server / module.pike

version» Context lines:

Roxen.git/server/base_server/module.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2009, Roxen IS. - // $Id: module.pike,v 1.237 2009/05/07 14:15:52 mast Exp $ + // $Id: module.pike,v 1.238 2009/07/07 14:15:26 jonasw Exp $      #include <module_constants.h>   #include <module.h>   #include <request_trace.h>      constant __pragma_save_parent__ = 1;      // Tell Pike.count_memory this is global.   constant pike_cycle_depth = 0;   
Roxen.git/server/base_server/module.pike:333:    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? p->ip: "127.0.0.1"); +  string ip = p->ip || "127.0.0.1"; +  if (ip == "::") +  ip = "::1"; +  uri->fragment = "ip=" + ip;    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;    }