diff --git a/README.md b/README.md index d525490..5a6cd85 100644 --- a/README.md +++ b/README.md @@ -21,17 +21,17 @@ $ docker build -t samuelhbne/proxy-xray:amd64 -f Dockerfile.amd64 . ```shell $ docker run --rm -it samuelhbne/proxy-xray:amd64 -proxy-xray -- [options] - --ltx id@host:port - --ltt id@host:port - --lttw id@host:port:/webpath - --lttg id@host:port:/svcpath - --mtt id@host:port - --mttw id@host:port:/webpath - --ttt password@host:port - --tttw password@host:port:/webpath - -i|--stdin Read XRay config from stdin instead of auto generation - -d|--debug Start Xray in debug mode with verbose output +proxy-xray -- [connect options] [-i|--stdin] [-d|--debug] + -i|--stdin [Optional] Read config from stdin instead of auto generation + -d|--debug [Optional] Start in debug mode with verbose output + --ltx id@host:port + --ltt id@host:port + --lttw id@host:port:/webpath + --lttg id@host:port:/svcpath + --mtt id@host:port + --mttw id@host:port:/webpath + --ttt password@host:port + --tttw password@host:port:/webpath $ 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 diff --git a/run.sh b/run.sh index 957b9f3..502adf2 100755 --- a/run.sh +++ b/run.sh @@ -5,19 +5,19 @@ DIR="$(cd $DIR; pwd)" XCONF=/tmp/proxy-xray.json usage() { - echo "proxy-xray -- [options]" - echo " --ltx id@host:port" - echo " --ltt id@host:port" - echo " --lttw id@host:port:/webpath" - echo " --lttg id@host:port:/svcpath" - echo " --mtt id@host:port" - echo " --mttw id@host:port:/webpath" - echo " --ttt password@host:port" - echo " --tttw password@host:port:/webpath" -# echo " --ssa password:method@host:port" -# echo " --sst password:method@host:port" - echo " -i|--stdin Read XRay config from stdin instead of auto generation" - echo " -d|--debug Start Xray in debug mode with verbose output" + echo "proxy-xray -- [connect options] [-i|--stdin] [-d|--debug]" + echo " -i|--stdin [Optional] Read config from stdin instead of auto generation" + echo " -d|--debug [Optional] Start in debug mode with verbose output" + echo " --ltx id@host:port" + echo " --ltt id@host:port" + echo " --lttw id@host:port:/webpath" + echo " --lttg id@host:port:/svcpath" + echo " --mtt id@host:port" + echo " --mttw id@host:port:/webpath" + echo " --ttt password@host:port" + echo " --tttw password@host:port:/webpath" +# echo " --ssa password:method@host:port" +# echo " --sst password:method@host:port" } TEMP=`getopt -o di --long ltx:,ltt:,lttw:,lttg:,mtt:,mttw:,ttt:,tttw:,ssa:,sst:stdin,debug -n "$0" -- $@`