mirror of
https://github.com/nadoo/glider.git
synced 2025-02-24 01:45:39 +08:00
doc: update ssr info
This commit is contained in:
parent
113a96fd18
commit
a25cc5cfe3
@ -122,6 +122,7 @@ Available Schemas:
|
|||||||
ss: ss proxy
|
ss: ss proxy
|
||||||
socks5: socks5 proxy
|
socks5: socks5 proxy
|
||||||
http: http proxy
|
http: http proxy
|
||||||
|
ssr: ssr proxy
|
||||||
redir: redirect proxy. (used on linux as a transparent proxy with iptables redirect rules)
|
redir: redirect proxy. (used on linux as a transparent proxy with iptables redirect rules)
|
||||||
tcptun: tcp tunnel
|
tcptun: tcp tunnel
|
||||||
udptun: udp tunnel
|
udptun: udp tunnel
|
||||||
|
1
conf.go
1
conf.go
@ -139,6 +139,7 @@ func usage() {
|
|||||||
fmt.Fprintf(os.Stderr, " ss: ss proxy\n")
|
fmt.Fprintf(os.Stderr, " ss: ss proxy\n")
|
||||||
fmt.Fprintf(os.Stderr, " socks5: socks5 proxy\n")
|
fmt.Fprintf(os.Stderr, " socks5: socks5 proxy\n")
|
||||||
fmt.Fprintf(os.Stderr, " http: http proxy\n")
|
fmt.Fprintf(os.Stderr, " http: http proxy\n")
|
||||||
|
fmt.Fprintf(os.Stderr, " ssr: ssr proxy\n")
|
||||||
fmt.Fprintf(os.Stderr, " redir: redirect proxy. (used on linux as a transparent proxy with iptables redirect rules)\n")
|
fmt.Fprintf(os.Stderr, " redir: redirect proxy. (used on linux as a transparent proxy with iptables redirect rules)\n")
|
||||||
fmt.Fprintf(os.Stderr, " tcptun: tcp tunnel\n")
|
fmt.Fprintf(os.Stderr, " tcptun: tcp tunnel\n")
|
||||||
fmt.Fprintf(os.Stderr, " udptun: udp tunnel\n")
|
fmt.Fprintf(os.Stderr, " udptun: udp tunnel\n")
|
||||||
|
2
http.go
2
http.go
@ -261,7 +261,7 @@ func parseFirstLine(tp *textproto.Reader) (r1, r2, r3 string, ok bool) {
|
|||||||
line, err := tp.ReadLine()
|
line, err := tp.ReadLine()
|
||||||
// logf("first line: %s", line)
|
// logf("first line: %s", line)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logf("proxy-http read request line error:%s", err)
|
logf("proxy-http read first line error:%s", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user