mirror of
https://github.com/nadoo/glider.git
synced 2025-02-23 17:35:40 +08:00
remove some feature help msg which haven't been implemented yet.
This commit is contained in:
parent
76afdacf13
commit
4772bfb7c6
10
README.md
10
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
|
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.
|
-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
|
## Service
|
||||||
@ -95,7 +89,7 @@ After=network.target
|
|||||||
Type=simple
|
Type=simple
|
||||||
ExecStartPre=/bin/mkdir -p /run/glider
|
ExecStartPre=/bin/mkdir -p /run/glider
|
||||||
ExecStartPre=/bin/chown nobody:nobody /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
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
ExecStop=/bin/kill -INT $MAINPID
|
ExecStop=/bin/kill -INT $MAINPID
|
||||||
Restart=always
|
Restart=always
|
||||||
@ -114,4 +108,4 @@ systemctl start glider.service
|
|||||||
|
|
||||||
## Thanks
|
## Thanks
|
||||||
- [go-shadowsocks2](https://github.com/shadowsocks/go-shadowsocks2): the core ss protocol support
|
- [go-shadowsocks2](https://github.com/shadowsocks/go-shadowsocks2): the core ss protocol support
|
||||||
- [gost](https://github.com/ginuerzh/gost): more protocols and more features
|
- [gost](https://github.com/ginuerzh/gost): ideas and inspirations
|
6
main.go
6
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, " "+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, " -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, "\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
|
type arrFlags []string
|
||||||
|
Loading…
Reference in New Issue
Block a user