mirror of https://github.com/ehang-io/nps
				
				
				
			Update bridge.go
							parent
							
								
									f7898e019e
								
							
						
					
					
						commit
						aa5b869da9
					
				| 
						 | 
				
			
			@ -71,7 +71,6 @@ func NewTunnel(tunnelPort int, tunnelType string, ipVerify bool, runList map[int
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
func (s *Bridge) StartTunnel() error {
 | 
			
		||||
	go s.linkCleanSession()
 | 
			
		||||
	var err error
 | 
			
		||||
	if s.tunnelType == "kcp" {
 | 
			
		||||
		s.kcpListener, err = kcp.ListenWithOptions(":"+strconv.Itoa(s.TunnelPort), nil, 150, 3)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue