sanitize names, not the list
This commit is contained in:
parent
8a0a3b739d
commit
a33da15c9f
|
@ -50,10 +50,11 @@ config = configparser.ConfigParser(allow_no_value=True)
|
|||
config.read('server.cfg')
|
||||
|
||||
# set up each hog device
|
||||
for name in config.get('network', 'hogs').split(',').strip('\"'):
|
||||
for name in config.get('network', 'hogs').split(','):
|
||||
try:
|
||||
# move to config section
|
||||
server = config[name]
|
||||
server = config[name.strip().strip('\"')]
|
||||
# read settings
|
||||
ip = server.get("ip", "10.0.0.100")
|
||||
port = server.getint("port", 7001)
|
||||
|
|
Loading…
Reference in New Issue