From 4772bfb7c6d7ac843cf09763acef7e7138f69ff1 Mon Sep 17 00:00:00 2001 From: nadoo <287492+nadoo@users.noreply.github.com> Date: Fri, 14 Jul 2017 16:49:21 +0800 Subject: [PATCH] remove some feature help msg which haven't been implemented yet. --- README.md | 10 ++-------- main.go | 6 ------ 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 346d882..453da30 100644 --- a/README.md +++ b/README.md @@ -72,12 +72,6 @@ Examples: glider -l socks5://:1080 -f ss://method:pass@server1:port1 -f ss://method:pass@server2:port2 -s rr -listen on :1080 as socks5 server, forward requests via server1 and server2 in roundrbin mode. - - glider -l mixed://:8443 -f ss://method:pass@server1:port1 - -listen on :8443, serve as http/socks5 proxy, forward requests via server1. - - glider -l mixed://:8443?http=1.1.1.1:80 -f ss://method:pass@server1:port1 - -listen on :8443, serve as socks5 proxy, and forward all HTTP requests to 1.1.1.1:80. ``` ## Service @@ -95,7 +89,7 @@ After=network.target Type=simple ExecStartPre=/bin/mkdir -p /run/glider ExecStartPre=/bin/chown nobody:nobody /run/glider -ExecStart=/opt/glider/glider -l redir://:7070 -l dnstun://:5353=8.8.8.8:53 -f ss://AEAD_CHACHA20_POLY1305:pass@yourhost:8443 +ExecStart=/opt/glider/glider -l redir://:7070 -l dnstun://:5353=8.8.8.8:53 -f ss://method:pass@yourhost:8443 ExecReload=/bin/kill -HUP $MAINPID ExecStop=/bin/kill -INT $MAINPID Restart=always @@ -114,4 +108,4 @@ systemctl start glider.service ## Thanks - [go-shadowsocks2](https://github.com/shadowsocks/go-shadowsocks2): the core ss protocol support -- [gost](https://github.com/ginuerzh/gost): more protocols and more features \ No newline at end of file +- [gost](https://github.com/ginuerzh/gost): ideas and inspirations \ No newline at end of file diff --git a/main.go b/main.go index d9071d8..0e7bbad 100644 --- a/main.go +++ b/main.go @@ -84,12 +84,6 @@ func usage() { fmt.Fprintf(os.Stderr, " "+app+" -l socks5://:1080 -f ss://method:pass@server1:port1 -f ss://method:pass@server2:port2 -s rr\n") fmt.Fprintf(os.Stderr, " -listen on :1080 as socks5 server, forward requests via server1 and server2 in roundrbin mode.\n") fmt.Fprintf(os.Stderr, "\n") - fmt.Fprintf(os.Stderr, " "+app+" -l mixed://:8443 -f ss://method:pass@server1:port1\n") - fmt.Fprintf(os.Stderr, " -listen on :8443, serve as http/socks5 proxy, forward requests via server1.\n") - fmt.Fprintf(os.Stderr, "\n") - fmt.Fprintf(os.Stderr, " "+app+" -l mixed://:8443?http=1.1.1.1:80 -f ss://method:pass@server1:port1\n") - fmt.Fprintf(os.Stderr, " -listen on :8443, serve as socks5 proxy, and forward all HTTP requests to 1.1.1.1:80.\n") - fmt.Fprintf(os.Stderr, "\n") } type arrFlags []string