From 5f3268aee917191fe3f18ee88dd3751ff51722e4 Mon Sep 17 00:00:00 2001 From: Kiritow <1362050620@qq.com> Date: Sun, 6 Feb 2022 01:27:18 +0000 Subject: [PATCH] fix: json type --- app/bootstrap.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/bootstrap.py b/app/bootstrap.py index 952ce85..1556ced 100644 --- a/app/bootstrap.py +++ b/app/bootstrap.py @@ -99,11 +99,11 @@ exec /root/bin/gost -L=relay+tls://:{}/{}:{} jconfig = { "run_type": "forward", "local_addr": "0.0.0.0", - "local_port": info['listen'], + "local_port": int(info['listen']), "remote_addr": remote_host, "remote_port": remote_port, "target_addr": "wgop.gateway", - "target_port": info['target'], + "target_port": int(info['target']), "log_level": 0, "password": [info['password']], "ssl": {} @@ -126,7 +126,7 @@ exec /root/bin/trojan-go -config /root/conf/{}.json jconfig = { "run_type": "server", "local_addr": "0.0.0.0", - "local_port": info['listen'], + "local_port": int(info['listen']), "remote_addr": "127.0.0.1", "remote_port": 80, "password": [info['password']],