From cebad26e6bee59c227b75f1abf2daab46ee8fe5f Mon Sep 17 00:00:00 2001 From: Jordan Rodgers Date: Tue, 20 Feb 2018 14:24:27 -0500 Subject: [PATCH] properly readd targets during cleanup --- proxstar/vnc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proxstar/vnc.py b/proxstar/vnc.py index ad2dd55..b6d06ac 100644 --- a/proxstar/vnc.py +++ b/proxstar/vnc.py @@ -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()