chiark
/
gitweb
/
~ian
/
hippotat.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
config: fix client config (no SERVER)
[hippotat.git]
/
hippotatlib
/
__init__.py
diff --git
a/hippotatlib/__init__.py
b/hippotatlib/__init__.py
index 9b10fdf093e96f53f727756bbf1982671fde7c0c..16bba813016f88654f33d890ebb9588ef2794003 100644
(file)
--- 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
# relating to virtual network
mtu = 1500
-[SERVER]
-server = SERVER
# addrs = 127.0.0.1 ::1
# url
# addrs = 127.0.0.1 ::1
# url
@@
-525,6
+523,10
@@
def cfg_process_ipif(c, sections, varmap):
#---------- startup ----------
#---------- startup ----------
+def log_debug_config(m):
+ if not DBG.CONFIG in debug_set: return
+ print('DBG.CONFIG:', m)
+
def common_startup(process_cfg):
# calls process_cfg(putative_clients, putative_servers)
def common_startup(process_cfg):
# calls process_cfg(putative_clients, putative_servers)
@@
-536,7
+538,7
@@
def common_startup(process_cfg):
def readconfig(pathname, mandatory=True):
def log(m, p=pathname):
if not DBG.CONFIG in debug_set: return
def readconfig(pathname, mandatory=True):
def log(m, p=pathname):
if not DBG.CONFIG in debug_set: return
-
print('DBG.CONFIG:
%s: %s' % (m, pathname))
+
log_debug_config('
%s: %s' % (m, pathname))
try:
files = os.listdir(pathname)
try:
files = os.listdir(pathname)