From: Ian Jackson Date: Mon, 10 Apr 2017 01:24:05 +0000 (+0100) Subject: config: fix client config (no SERVER) X-Git-Tag: hippotat/1.0.0~55^2~40 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=hippotat.git;a=commitdiff_plain;h=a97e7215874070bbf794e9c21f51ff82fad2f86a config: fix client config (no SERVER) Signed-off-by: Ian Jackson --- diff --git a/hippotatd b/hippotatd index cb86c2b..fe10eec 100755 --- a/hippotatd +++ b/hippotatd @@ -296,7 +296,8 @@ def process_cfg(_opts, putative_servers, putative_clients): global c c = ConfigResults() - c.server = cfg.get('SERVER','server') + try: c.server = cfg.get('SERVER','server') + except NoOptionError: c.server = 'SERVER' cfg_process_common(c, c.server) cfg_process_saddrs(c, c.server) diff --git a/hippotatlib/__init__.py b/hippotatlib/__init__.py index 397dfb2..16bba81 100644 --- a/hippotatlib/__init__.py +++ b/hippotatlib/__init__.py @@ -143,8 +143,6 @@ ipif = userv root ipif %(local)s,%(peer)s,%(mtu)s,slip %(rnets)s # relating to virtual network mtu = 1500 -[SERVER] -server = SERVER # addrs = 127.0.0.1 ::1 # url