mirror of
https://github.com/ehang-io/nps.git
synced 2025-07-02 04:00:42 +00:00
Update bridge.go
This commit is contained in:
parent
18c11f108b
commit
89df38422c
@ -296,7 +296,7 @@ func (s *Bridge) register(c *conn.Conn) {
|
|||||||
func (s *Bridge) SendLinkInfo(clientId int, link *conn.Link, t *file.Tunnel) (target net.Conn, err error) {
|
func (s *Bridge) SendLinkInfo(clientId int, link *conn.Link, t *file.Tunnel) (target net.Conn, err error) {
|
||||||
//if the proxy type is local
|
//if the proxy type is local
|
||||||
if link.LocalProxy {
|
if link.LocalProxy {
|
||||||
target, err = net.Dial(link.ConnType, link.Host)
|
target, err = net.Dial("tcp", link.Host)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if v, ok := s.Client.Load(clientId); ok {
|
if v, ok := s.Client.Load(clientId); ok {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user