Skip to content

Commit

Permalink
Add XRay VLESS-Relauity fingerprint, servername and spiderX settings (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
suyuan168 authored Apr 22, 2024
2 parents 7784e68 + 8bccbcc commit d30806f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
9 changes: 6 additions & 3 deletions xray-core/files/etc/init.d/xray
Original file line number Diff line number Diff line change
Expand Up @@ -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' \
Expand Down Expand Up @@ -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
Expand Down
9 changes: 6 additions & 3 deletions xray-core/files/etc/init.d/xray-nft
Original file line number Diff line number Diff line change
Expand Up @@ -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' \
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d30806f

Please sign in to comment.