mirror of
https://github.com/itdoginfo/podkop.git
synced 2026-06-10 05:18:13 +03:00
fix: initialize scheme before checking security and clear fingerprint for hysteria2 (hy2) schemes
This commit is contained in:
@@ -178,8 +178,9 @@ _add_outbound_security() {
|
||||
|
||||
local security scheme
|
||||
security=$(url_get_query_param "$url" "security")
|
||||
scheme="$(url_get_scheme "$url")"
|
||||
|
||||
if [ -z "$security" ]; then
|
||||
scheme="$(url_get_scheme "$url")"
|
||||
if [ "$scheme" = "hysteria2" ] || [ "$scheme" = "hy2" ]; then
|
||||
security="tls"
|
||||
fi
|
||||
@@ -195,6 +196,10 @@ _add_outbound_security() {
|
||||
public_key=$(url_get_query_param "$url" "pbk")
|
||||
short_id=$(url_get_query_param "$url" "sid")
|
||||
|
||||
if [ "$scheme" = "hysteria2" ] || [ "$scheme" = "hy2" ]; then
|
||||
fingerprint=""
|
||||
fi
|
||||
|
||||
config=$(
|
||||
sing_box_cm_set_tls_for_outbound \
|
||||
"$config" \
|
||||
|
||||
Reference in New Issue
Block a user