mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-28 05:32:51 +01:00
conf: remove key checks for password fields
TODO: replace this with more verbose checks in protocol modules
This commit is contained in:
parent
47a0a7f8c6
commit
0a0e19d4c2
3
conf.py
3
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 \
|
||||
|
Loading…
Reference in New Issue
Block a user