Branch: Tag:

2001-08-05

2001-08-05 20:14:56 by Martin Nilsson <mani@lysator.liu.se>

No more fhttp.

Rev: server/base_server/configuration.pike:1.460
Rev: server/base_server/global_variables.pike:1.76
Rev: server/base_server/roxen.pike:1.688
Rev: server/etc/modules/Roxen.pmod:1.108
Rev: server/etc/modules/Variable.pmod/module.pmod:1.61
Rev: server/modules/logging/roxen_network.pike:1.6

1:   // This is a roxen pike module. Copyright © 1999 - 2000, Roxen IS.   // - // $Id: Roxen.pmod,v 1.107 2001/07/25 18:47:21 mast Exp $ + // $Id: Roxen.pmod,v 1.108 2001/08/05 20:11:14 nilsson Exp $      #include <roxen.h>   #include <config.h>
3175:    if(!sizeof(urls)) return 0;       string url=urls[0]; -  foreach( ({"http:","fhttp:","https:","ftp:"}), string p) +  foreach( ({"http:","https:","ftp:"}), string p)    foreach(urls, string u)    if(u[0..sizeof(p)-1]==p) {    url=u;
3190:    sscanf(url, "%s://%s", protocol, server)!=2 )    return 0;    -  if(protocol=="fhttp") protocol="http"; -  +     array hosts=({ gethostname() }), dns;    catch(dns=Protocols.DNS.client()->gethostbyname(hosts[0]));    if(dns && sizeof(dns))