Branch: Tag:

2005-05-11

2005-05-11 13:00:01 by Marcus Wellhardh <wellhard@roxen.com>

Fixed location_url() to return 127.0.0.1 insted of 0 for ANY.

Rev: server/base_server/module.pike:1.219

1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2004, Roxen IS. - // $Id: module.pike,v 1.218 2005/04/22 18:10:02 wellhard Exp $ + // $Id: module.pike,v 1.219 2005/05/11 13:00:01 wellhard Exp $      #include <module_constants.h>   #include <module.h>
293:    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;