mirror of
https://github.com/nadoo/glider.git
synced 2025-02-23 17:35:40 +08:00
doc: update for vmess and tls
This commit is contained in:
parent
ed18e8602d
commit
3c3cb8e3fd
13
README.md
13
README.md
@ -91,7 +91,7 @@ glider -config CONFIGPATH -listen :8080 -verbose
|
|||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
```bash
|
```bash
|
||||||
glider v0.6.0 usage:
|
glider v0.6.2 usage:
|
||||||
-checkduration int
|
-checkduration int
|
||||||
proxy check duration(seconds) (default 30)
|
proxy check duration(seconds) (default 30)
|
||||||
-checkwebsite string
|
-checkwebsite string
|
||||||
@ -148,7 +148,16 @@ VMess scheme:
|
|||||||
vmess://[security:]uuid@host:port?alterID=num
|
vmess://[security:]uuid@host:port?alterID=num
|
||||||
|
|
||||||
Available methods for vmess:
|
Available methods for vmess:
|
||||||
NONE, (will add aes-128-gcm and chacha20-poly1305 later)
|
none, aes-128-gcm, chacha20-poly1305
|
||||||
|
|
||||||
|
TLS scheme:
|
||||||
|
tls://host:port[?skipVerify=true]
|
||||||
|
|
||||||
|
TLS with a specified proxy protocol:
|
||||||
|
tls://host:port[?skipVerify=true],proxy://scheme
|
||||||
|
tls://host:port[?skipVerify=true],http://[user:pass@]
|
||||||
|
tls://host:port[?skipVerify=true],socks5://[user:pass@]
|
||||||
|
tls://host:port[?skipVerify=true],vmess://[security:]uuid@?alterID=num
|
||||||
|
|
||||||
Available forward strategies:
|
Available forward strategies:
|
||||||
rr: Round Robin mode
|
rr: Round Robin mode
|
||||||
|
13
conf.go
13
conf.go
@ -193,7 +193,18 @@ func usage() {
|
|||||||
fmt.Fprintf(os.Stderr, "\n")
|
fmt.Fprintf(os.Stderr, "\n")
|
||||||
|
|
||||||
fmt.Fprintf(os.Stderr, "Available methods for vmess:\n")
|
fmt.Fprintf(os.Stderr, "Available methods for vmess:\n")
|
||||||
fmt.Fprintf(os.Stderr, " NONE, (will add aes-128-gcm and chacha20-poly1305 later)\n")
|
fmt.Fprintf(os.Stderr, " none, aes-128-gcm, chacha20-poly1305\n")
|
||||||
|
fmt.Fprintf(os.Stderr, "\n")
|
||||||
|
|
||||||
|
fmt.Fprintf(os.Stderr, "TLS scheme:\n")
|
||||||
|
fmt.Fprintf(os.Stderr, " tls://host:port[?skipVerify=true]\n")
|
||||||
|
fmt.Fprintf(os.Stderr, "\n")
|
||||||
|
|
||||||
|
fmt.Fprintf(os.Stderr, "TLS with a specified proxy protocol:\n")
|
||||||
|
fmt.Fprintf(os.Stderr, " tls://host:port[?skipVerify=true],proxy://scheme\n")
|
||||||
|
fmt.Fprintf(os.Stderr, " tls://host:port[?skipVerify=true],http://[user:pass@]\n")
|
||||||
|
fmt.Fprintf(os.Stderr, " tls://host:port[?skipVerify=true],socks5://[user:pass@]\n")
|
||||||
|
fmt.Fprintf(os.Stderr, " tls://host:port[?skipVerify=true],vmess://[security:]uuid@?alterID=num\n")
|
||||||
fmt.Fprintf(os.Stderr, "\n")
|
fmt.Fprintf(os.Stderr, "\n")
|
||||||
|
|
||||||
fmt.Fprintf(os.Stderr, "Available forward strategies:\n")
|
fmt.Fprintf(os.Stderr, "Available forward strategies:\n")
|
||||||
|
@ -35,7 +35,7 @@ func NewTLS(s string, dialer proxy.Dialer) (*TLS, error) {
|
|||||||
addr := u.Host
|
addr := u.Host
|
||||||
|
|
||||||
query := u.Query()
|
query := u.Query()
|
||||||
skipVerify := query.Get("InsecureSkipVerify")
|
skipVerify := query.Get("skipVerify")
|
||||||
|
|
||||||
colonPos := strings.LastIndex(addr, ":")
|
colonPos := strings.LastIndex(addr, ":")
|
||||||
if colonPos == -1 {
|
if colonPos == -1 {
|
||||||
|
Loading…
Reference in New Issue
Block a user