fix: remove fallback block generation from sing-box VLESS configuration since HAProxy handles fallback
Main / build (push) Waiting to run
Main / build (push) Waiting to run
This commit is contained in:
+1
-5
@@ -1445,11 +1445,7 @@ get() {
|
|||||||
[[ ! $is_private_key ]] && get_pbk
|
[[ ! $is_private_key ]] && get_pbk
|
||||||
local handshake_server=$is_servername
|
local handshake_server=$is_servername
|
||||||
local handshake_port=443
|
local handshake_port=443
|
||||||
local fallback_json=""
|
is_json_add="tls:{enabled:true,server_name:\"$is_servername\",reality:{enabled:true,handshake:{server:\"$handshake_server\",server_port:$handshake_port},private_key:\"$is_private_key\",short_id:[\"\"]}}"
|
||||||
[[ $is_reality_fallback ]] && {
|
|
||||||
fallback_json=",fallback:{server:\"127.0.0.1\",server_port:4443}"
|
|
||||||
}
|
|
||||||
is_json_add="tls:{enabled:true,server_name:\"$is_servername\",reality:{enabled:true,handshake:{server:\"$handshake_server\",server_port:$handshake_port},private_key:\"$is_private_key\",short_id:[\"\"]}}$fallback_json"
|
|
||||||
[[ $is_lower =~ "http" ]] && {
|
[[ $is_lower =~ "http" ]] && {
|
||||||
is_json_add="$is_json_add,transport:{type:\"http\"}"
|
is_json_add="$is_json_add,transport:{type:\"http\"}"
|
||||||
} || {
|
} || {
|
||||||
|
|||||||
Reference in New Issue
Block a user