# HG changeset patch # User Florent Cayre # Date 1363195036 -3600 # Node ID 1437c47925c319b8d4cd5330cd52afa68c08c534 # Parent 02ddda54143359feea5f0487a0f602b70aed3de6 default base-url now uses fdqn instead of hostname only (closes #2542815) diff -r 02ddda541433 -r 1437c47925c3 etwist/twconfig.py --- a/etwist/twconfig.py Thu Mar 28 13:48:48 2013 +0100 +++ b/etwist/twconfig.py Wed Mar 13 18:17:16 2013 +0100 @@ -103,8 +103,8 @@ return join(self.apphome, '%s-%s.py' % (self.appid, self.name)) def default_base_url(self): - from socket import gethostname - return 'http://%s:%s/' % (self['host'] or gethostname(), self['port'] or 8080) + from socket import getfqdn + return 'http://%s:%s/' % (self['host'] or getfqdn(), self['port'] or 8080) CONFIGURATIONS.append(TwistedConfiguration)