Branch: Tag:

2008-12-23

2008-12-23 13:17:22 by Martin Stjernholm <mast@lysator.liu.se>

Support IDN hostnames for port binding and in roxen.gethostbyname.

Rev: server/base_server/hosts.pike:1.35
Rev: server/base_server/roxen.pike:1.1007
Rev: server/config_interface/sites/site_content.pike:1.154
Rev: server/etc/modules/Roxen.pmod:1.263

1:   // This is a roxen pike module. Copyright © 1999 - 2004, Roxen IS.   // - // $Id: Roxen.pmod,v 1.262 2008/12/11 17:18:30 jonasw Exp $ + // $Id: Roxen.pmod,v 1.263 2008/12/23 13:17:22 mast Exp $      #include <roxen.h>   #include <config.h>
4505:       array hosts=({ gethostname() }), dns;   #ifndef NO_DNS -  catch(dns=Protocols.DNS.client()->gethostbyname(hosts[0])); +  catch(dns=roxen->gethostbyname(hosts[0]));    if(dns && sizeof(dns))    hosts+=dns[2]+dns[1];   #endif /* !NO_DNS */