1
0
Fork 0

sanitize names, not the list

This commit is contained in:
Kevin Matz 2019-11-17 13:25:18 -05:00
parent 8a0a3b739d
commit a33da15c9f
1 changed files with 2 additions and 1 deletions

View File

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