mirror of
https://github.com/itdoginfo/podkop.git
synced 2026-07-27 17:21:49 +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
|
local security scheme
|
||||||
security=$(url_get_query_param "$url" "security")
|
security=$(url_get_query_param "$url" "security")
|
||||||
|
scheme="$(url_get_scheme "$url")"
|
||||||
|
|
||||||
if [ -z "$security" ]; then
|
if [ -z "$security" ]; then
|
||||||
scheme="$(url_get_scheme "$url")"
|
|
||||||
if [ "$scheme" = "hysteria2" ] || [ "$scheme" = "hy2" ]; then
|
if [ "$scheme" = "hysteria2" ] || [ "$scheme" = "hy2" ]; then
|
||||||
security="tls"
|
security="tls"
|
||||||
fi
|
fi
|
||||||
@@ -195,6 +196,10 @@ _add_outbound_security() {
|
|||||||
public_key=$(url_get_query_param "$url" "pbk")
|
public_key=$(url_get_query_param "$url" "pbk")
|
||||||
short_id=$(url_get_query_param "$url" "sid")
|
short_id=$(url_get_query_param "$url" "sid")
|
||||||
|
|
||||||
|
if [ "$scheme" = "hysteria2" ] || [ "$scheme" = "hy2" ]; then
|
||||||
|
fingerprint=""
|
||||||
|
fi
|
||||||
|
|
||||||
config=$(
|
config=$(
|
||||||
sing_box_cm_set_tls_for_outbound \
|
sing_box_cm_set_tls_for_outbound \
|
||||||
"$config" \
|
"$config" \
|
||||||
|
|||||||
Reference in New Issue
Block a user