mirror of
				https://github.com/nadoo/glider.git
				synced 2025-11-04 07:42:38 +08:00 
			
		
		
		
	doc: update help msg for ws
This commit is contained in:
		
							parent
							
								
									88eee75aa7
								
							
						
					
					
						commit
						49021f167c
					
				@ -125,6 +125,8 @@ Available Schemes:
 | 
				
			|||||||
  http: http proxy
 | 
					  http: http proxy
 | 
				
			||||||
  ssr: ssr proxy
 | 
					  ssr: ssr proxy
 | 
				
			||||||
  vmess: vmess proxy
 | 
					  vmess: vmess proxy
 | 
				
			||||||
 | 
					  tls: tls transport
 | 
				
			||||||
 | 
					  ws: websocket transport
 | 
				
			||||||
  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
 | 
				
			||||||
@ -164,7 +166,7 @@ Websocket scheme:
 | 
				
			|||||||
  ws://host:port[/path]
 | 
					  ws://host:port[/path]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Websocket with a specified proxy protocol:
 | 
					Websocket with a specified proxy protocol:
 | 
				
			||||||
  ws://host:port[/path],proxy://scheme
 | 
					  ws://host:port[/path],scheme://
 | 
				
			||||||
  ws://host:port[/path],http://[user:pass@]
 | 
					  ws://host:port[/path],http://[user:pass@]
 | 
				
			||||||
  ws://host:port[/path],socks5://[user:pass@]
 | 
					  ws://host:port[/path],socks5://[user:pass@]
 | 
				
			||||||
  ws://host:port[/path],vmess://[security:]uuid@?alterID=num
 | 
					  ws://host:port[/path],vmess://[security:]uuid@?alterID=num
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										2
									
								
								conf.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								conf.go
									
									
									
									
									
								
							@ -162,6 +162,8 @@ func usage() {
 | 
				
			|||||||
	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, "  ssr: ssr proxy\n")
 | 
				
			||||||
	fmt.Fprintf(os.Stderr, "  vmess: vmess proxy\n")
 | 
						fmt.Fprintf(os.Stderr, "  vmess: vmess proxy\n")
 | 
				
			||||||
 | 
						fmt.Fprintf(os.Stderr, "  tls: tls transport\n")
 | 
				
			||||||
 | 
						fmt.Fprintf(os.Stderr, "  ws: websocket transport\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
									
								
								dev.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								dev.go
									
									
									
									
									
								
							@ -6,8 +6,6 @@ import (
 | 
				
			|||||||
	"fmt"
 | 
						"fmt"
 | 
				
			||||||
	"net/http"
 | 
						"net/http"
 | 
				
			||||||
	_ "net/http/pprof"
 | 
						_ "net/http/pprof"
 | 
				
			||||||
 | 
					 | 
				
			||||||
	_ "github.com/nadoo/glider/proxy/ws"
 | 
					 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func init() {
 | 
					func init() {
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										1
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								main.go
									
									
									
									
									
								
							@ -22,6 +22,7 @@ import (
 | 
				
			|||||||
	_ "github.com/nadoo/glider/proxy/udptun"
 | 
						_ "github.com/nadoo/glider/proxy/udptun"
 | 
				
			||||||
	_ "github.com/nadoo/glider/proxy/uottun"
 | 
						_ "github.com/nadoo/glider/proxy/uottun"
 | 
				
			||||||
	_ "github.com/nadoo/glider/proxy/vmess"
 | 
						_ "github.com/nadoo/glider/proxy/vmess"
 | 
				
			||||||
 | 
						_ "github.com/nadoo/glider/proxy/ws"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// VERSION .
 | 
					// VERSION .
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user