3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 21:19:31 +01:00

conf: remove key checks for password fields

TODO: replace this with more verbose checks in protocol modules
This commit is contained in:
James Lu 2016-07-16 21:59:40 -07:00
parent 47a0a7f8c6
commit 0a0e19d4c2

View File

@ -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 \