chiark / gitweb /
config: fix client config (no SERVER)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 10 Apr 2017 01:24:05 +0000 (02:24 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 10 Apr 2017 01:24:05 +0000 (02:24 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
hippotatd
hippotatlib/__init__.py

index cb86c2b..fe10eec 100755 (executable)
--- 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)
index 397dfb2..16bba81 100644 (file)
@@ -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