Roxen.git/
server/
etc/
modules/
Roxen.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2011-09-21
2011-09-21 21:33:47 by Martin Stjernholm <mast@lysator.liu.se>
5d6323a3a4f1d170e6ff24186bc0f4b16d8ffd28 (
6
lines) (+
4
/-
2
)
[
Show
|
Annotate
]
Branch:
5.2
Avoid a compilation warning in offline mode.
Rev: server/etc/modules/Roxen.pmod:1.321
1:
// This is a roxen pike module. Copyright © 1999 - 2009, Roxen IS. //
-
// $Id: Roxen.pmod,v 1.
320
2011/09/21 21:
32
:
39
mast Exp $
+
// $Id: Roxen.pmod,v 1.
321
2011/09/21 21:
33
:
47
mast Exp $
#include <roxen.h> #include <config.h>
5066:
// The host part of the URL is a glob. // Lets find some suitable hostnames and IPs to match it against.
-
array hosts=({ gethostname() })
, dns
;
+
array hosts=({ gethostname() });
#ifndef NO_DNS
-
+
array dns;
catch(dns=roxen->gethostbyname(hosts[0])); if(dns && sizeof(dns)) hosts+=dns[2]+dns[1];