chiark / gitweb /
use __dict__
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 21 Mar 2017 00:26:44 +0000 (00:26 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 21 Mar 2017 00:26:44 +0000 (00:26 +0000)
server

diff --git a/server b/server
index f1b9ca4..62f5374 100755 (executable)
--- a/server
+++ b/server
@@ -224,11 +224,7 @@ def process_cfg():
 
   print(repr(c))
 
-  iic_vars = { }
-  for k in ('host','relay','mtu','network'):
-    iic_vars[k] = getattr(c,k)
-
-  c.ipif_command = cfg.get('server','ipif', vars=iic_vars)
+  c.ipif_command = cfg.get('server','ipif', vars=c.__dict__)
 
 common_startup(defcfg)
 process_cfg()