From 5439504de714da77cf00b0b25971cbc4c337f693 Mon Sep 17 00:00:00 2001 From: Andrey Petelin Date: Tue, 16 Sep 2025 17:12:19 +0500 Subject: [PATCH] fix: Correct boolean value for interrupt_exist_connections in JSON generation --- podkop/files/usr/lib/sing_box_config_manager.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/podkop/files/usr/lib/sing_box_config_manager.sh b/podkop/files/usr/lib/sing_box_config_manager.sh index 1855962..61fcfb7 100644 --- a/podkop/files/usr/lib/sing_box_config_manager.sh +++ b/podkop/files/usr/lib/sing_box_config_manager.sh @@ -876,7 +876,7 @@ sing_box_cm_add_urltest_outbound() { + (if $interval != "" then {interval: $interval} else {} end) + (if $tolerance != "" then {tolerance: ($tolerance | tonumber)} else {} end) + (if $idle_timeout != "" then {idle_timeout: $idle_timeout} else {} end) - + (if $interrupt_exist_connections == "true" then {interrupt_exist_connections: $interrupt_exist_connections} else {} end) + + (if $interrupt_exist_connections == "true" then {interrupt_exist_connections: true} else {} end) ]' } @@ -912,7 +912,7 @@ sing_box_cm_add_selector_outbound() { outbounds: $outbounds, default: $default } - + (if $interrupt_exist_connections == "true" then {interrupt_exist_connections: $interrupt_exist_connections} else {} end) + + (if $interrupt_exist_connections == "true" then {interrupt_exist_connections: true} else {} end) ]' }