From d83bb20df135d074fb85177f7a7f3adec08f6f6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=B0=E5=93=A5?= <858806258@qq.com> Date: Mon, 23 Dec 2019 22:47:42 +0800 Subject: [PATCH] nps auto reconnection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 服务端掉线,客户端自动重连. --- package/lean/luci-app-nps/root/etc/init.d/nps | 1 + 1 file changed, 1 insertion(+) diff --git a/package/lean/luci-app-nps/root/etc/init.d/nps b/package/lean/luci-app-nps/root/etc/init.d/nps index 0f51c0b2f..525d06935 100755 --- a/package/lean/luci-app-nps/root/etc/init.d/nps +++ b/package/lean/luci-app-nps/root/etc/init.d/nps @@ -24,6 +24,7 @@ nps_header() { echo "server_addr=${server_addr}:${server_port}" >>$tmpconf echo "conn_type=${protocol}" >>$tmpconf echo "vkey=${vkey}" >>$tmpconf + echo "auto_reconnection=true" >>$tmpconf nps_write_bool compress $1 nps_write_bool crypt $1