mirror of
https://github.com/samuelhbne/proxy-xray.git
synced 2025-12-17 04:34:37 +03:00
Fix doc error serverName->dest
This commit is contained in:
13
proxy-ltr.sh
13
proxy-ltr.sh
@@ -11,7 +11,7 @@ if [ -z "$1" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# id@domain.com:443,serverName=x.org,fingerprint=safari
|
||||
# id@domain.com:443,dest=yaho.com,fingerprint=safari
|
||||
args=(`echo $1 |tr ',' ' '`)
|
||||
dest="${args[0]}"
|
||||
for ext_opt in "${args[@]}"
|
||||
@@ -21,6 +21,9 @@ do
|
||||
d|dest)
|
||||
serverName="${kv[1]}"
|
||||
;;
|
||||
s|serverName)
|
||||
serverName="${kv[1]}"
|
||||
;;
|
||||
f|fingerprint)
|
||||
fingerprint="${kv[1]}"
|
||||
;;
|
||||
@@ -30,9 +33,6 @@ do
|
||||
pub|publicKey)
|
||||
publicKey="${kv[1]}"
|
||||
;;
|
||||
s|serverName)
|
||||
serverName="${kv[1]}"
|
||||
;;
|
||||
shortId)
|
||||
shortId="${kv[1]}"
|
||||
;;
|
||||
@@ -47,7 +47,6 @@ options=(`echo ${options[1]} |tr ':' ' '`)
|
||||
host="${options[0]}"
|
||||
port="${options[1]}"
|
||||
|
||||
if [ -z "${serverName}" ]; then serverName=${host}; fi
|
||||
if [ -z "${fingerprint}" ]; then fingerprint="safari"; fi
|
||||
|
||||
if [ -z "${id}" ]; then
|
||||
@@ -75,9 +74,9 @@ fi
|
||||
if ! [ "${port}" -eq "${port}" ] 2>/dev/null; then >&2 echo "Port number must be numeric"; exit 1; fi
|
||||
|
||||
# User settings
|
||||
Jusers=`jq -nc --arg uuid "${id}" --arg flow "${flow}" '. += {"id":$uuid, "flow":$flow, "encryption":"none", "level":0}'`
|
||||
Jusers=`jq -nc --arg uuid "${id}" --arg flow "${flow}" '. += {"flow":$flow,"id":$uuid,"encryption":"none","level":0}'`
|
||||
|
||||
# Vnest settings
|
||||
# Vnext settings
|
||||
Jvnext=`jq -nc --arg host "${host}" --arg port "${port}" --argjson juser "${Jusers}" \
|
||||
'. += {"address":$host,"port":($port | tonumber),"users":[$juser]}' `
|
||||
|
||||
|
||||
Reference in New Issue
Block a user