From 0a0e19d4c2325b42439ad7a426e20afa8c380964 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 16 Jul 2016 21:59:40 -0700 Subject: [PATCH] conf: remove key checks for password fields TODO: replace this with more verbose checks in protocol modules --- conf.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/conf.py b/conf.py index f47ec3d..37679fd 100644 --- a/conf.py +++ b/conf.py @@ -51,8 +51,7 @@ def validateConf(conf): assert conf.get(section), "Missing %r section in config." % section for netname, serverblock in conf['servers'].items(): - for section in ('ip', 'port', 'recvpass', 'sendpass', 'hostname', - 'sid', 'sidrange', 'protocol'): + for section in ('ip', 'port', 'hostname', 'sid', 'sidrange', 'protocol'): assert serverblock.get(section), "Missing %r in server block for %r." % (section, netname) assert type(conf['login'].get('password')) == type(conf['login'].get('user')) == str and \