mirror of
https://github.com/samuelhbne/proxy-xray.git
synced 2025-12-17 04:34:37 +03:00
Add -i|--stdin -d|--debug support
This commit is contained in:
@@ -30,8 +30,8 @@ proxy-xray --<ltx|ltt|lttw|mtt|mttw|ttt|tttw|ssa|sst|stdin> [options]
|
|||||||
--mttw <VMESS-TCP-TLS-WS option> id@host:port:/webpath
|
--mttw <VMESS-TCP-TLS-WS option> id@host:port:/webpath
|
||||||
--ttt <TROJAN-TCP-TLS option> password@host:port
|
--ttt <TROJAN-TCP-TLS option> password@host:port
|
||||||
--tttw <TROJAN-TCP-TLS-WS option> password@host:port:/webpath
|
--tttw <TROJAN-TCP-TLS-WS option> password@host:port:/webpath
|
||||||
-d|--debug Start in debug mode with DNS server disabled
|
-i|--stdin Read XRay config from stdin instead of auto generation
|
||||||
--stdin Read XRay config from stdin instead of auto generation
|
-d|--debug Start Xray in debug mode with verbose output
|
||||||
|
|
||||||
$ docker run --name proxy-xray -p 1080:2080 -p 65353:53/udp -p 8123:8223 -d samuelhbne/proxy-xray \
|
$ docker run --name proxy-xray -p 1080:2080 -p 65353:53/udp -p 8123:8223 -d samuelhbne/proxy-xray \
|
||||||
--ltx myid@mydomain.duckdns.org:443
|
--ltx myid@mydomain.duckdns.org:443
|
||||||
|
|||||||
8
run.sh
8
run.sh
@@ -16,11 +16,11 @@ usage() {
|
|||||||
echo " --tttw <TROJAN-TCP-TLS-WS option> password@host:port:/webpath"
|
echo " --tttw <TROJAN-TCP-TLS-WS option> password@host:port:/webpath"
|
||||||
# echo " --ssa <Shadowsocks-AEAD option> password:method@host:port"
|
# echo " --ssa <Shadowsocks-AEAD option> password:method@host:port"
|
||||||
# echo " --sst <Shadowsocks-TCP option> password:method@host:port"
|
# echo " --sst <Shadowsocks-TCP option> password:method@host:port"
|
||||||
echo " -d|--debug Start in debug mode with DNS server disabled"
|
echo " -i|--stdin Read XRay config from stdin instead of auto generation"
|
||||||
echo " --stdin Read XRay config from stdin instead of auto generation"
|
echo " -d|--debug Start Xray in debug mode with verbose output"
|
||||||
}
|
}
|
||||||
|
|
||||||
TEMP=`getopt -o d --long ltx:,ltt:,lttw:,lttg:,mtt:,mttw:,ttt:,tttw:,ssa:,sst:stdin,debug -n "$0" -- $@`
|
TEMP=`getopt -o di --long ltx:,ltt:,lttw:,lttg:,mtt:,mttw:,ttt:,tttw:,ssa:,sst:stdin,debug -n "$0" -- $@`
|
||||||
if [ $? != 0 ] ; then usage; exit 1 ; fi
|
if [ $? != 0 ] ; then usage; exit 1 ; fi
|
||||||
|
|
||||||
eval set -- "$TEMP"
|
eval set -- "$TEMP"
|
||||||
@@ -37,7 +37,7 @@ while true ; do
|
|||||||
fi
|
fi
|
||||||
shift 2
|
shift 2
|
||||||
;;
|
;;
|
||||||
--stdin)
|
-i|--stdin)
|
||||||
STDINCONF=1
|
STDINCONF=1
|
||||||
shift 1
|
shift 1
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user