properly readd targets during cleanup

This commit is contained in:
Jordan Rodgers 2018-02-20 14:24:27 -05:00
parent e5e54d1239
commit cebad26e6b

View file

@ -68,7 +68,8 @@ def delete_vnc_target(port):
targets.remove(target)
target_file = open(app.config['WEBSOCKIFY_TARGET_FILE'], 'w')
for target in targets:
target_file.write("{}\n".format(target))
target_file.write("{}: 127.0.0.1:{}\n".format(
target['token'], target['port']))
target_file.close()