Merge pull request #169 from itdoginfo/urltest

fix: Correct boolean value for interrupt_exist_connections in JSON
This commit is contained in:
Kirill Sobakin
2025-09-16 15:14:43 +03:00
committed by GitHub

View File

@@ -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)
]'
}