diff --git a/xray-core/files/etc/init.d/xray b/xray-core/files/etc/init.d/xray index 1ad2ff53a4..8c1662d2d5 100755 --- a/xray-core/files/etc/init.d/xray +++ b/xray-core/files/etc/init.d/xray @@ -387,6 +387,9 @@ outbound_section_validate() { 's_vless_reality_user_encryption:or("auto", "none")' \ 's_vless_reality_flow:string' \ 's_vless_reality_public_key:string' \ + 's_vless_reality_fingerprint:string:chrome' \ + 's_vless_reality_servername:string' \ + 's_vless_reality_spiderx:string' \ 's_vless_reality_user_level:uinteger' \ 's_trojan_address:host' \ 's_trojan_port:port' \ @@ -1707,10 +1710,10 @@ add_outbound_setting() { if [ "x$protocol" = "xvless-reality" ]; then json_add_string "security" "reality" json_add_object "realitySettings" - json_add_string "fingerprint" "chrome" - json_add_string "serverName" "" + json_add_string "fingerprint" "$s_vless_reality_fingerprint" + json_add_string "serverName" "$s_vless_reality_servername" json_add_string "publicKey" "$s_vless_reality_public_key" - json_add_string "spiderX" "" + json_add_string "spiderX" "$s_vless_reality_spiderx" json_add_string "shortId" "" json_close_object fi diff --git a/xray-core/files/etc/init.d/xray-nft b/xray-core/files/etc/init.d/xray-nft index 76689de1ca..506ffe0520 100755 --- a/xray-core/files/etc/init.d/xray-nft +++ b/xray-core/files/etc/init.d/xray-nft @@ -393,6 +393,9 @@ outbound_section_validate() { 's_vless_reality_user_encryption:or("auto", "none")' \ 's_vless_reality_flow:string' \ 's_vless_reality_public_key:string' \ + 's_vless_reality_fingerprint:string:chrome' \ + 's_vless_reality_servername:string' \ + 's_vless_reality_spiderx:string' \ 's_vless_reality_user_level:uinteger' \ 's_trojan_address:host' \ 's_trojan_port:port' \ @@ -1755,10 +1758,10 @@ add_outbound_setting() { if [ "x$protocol" = "xvless-reality" ]; then json_add_string "security" "reality" json_add_object "realitySettings" - json_add_string "fingerprint" "chrome" - json_add_string "serverName" "" + json_add_string "fingerprint" "$s_vless_reality_fingerprint" + json_add_string "serverName" "$s_vless_reality_servername" json_add_string "publicKey" "$s_vless_reality_public_key" - json_add_string "spiderX" "" + json_add_string "spiderX" "$s_vless_reality_spiderx" json_add_string "shortId" "" json_close_object fi