mirror of
https://github.com/ehang-io/nps.git
synced 2025-07-02 04:00:42 +00:00
Bug
This commit is contained in:
parent
f2329f72f6
commit
48c7309973
@ -309,7 +309,7 @@ func (s *Bridge) SendLinkInfo(clientId int, link *conn.Link, linkAddr string) (t
|
|||||||
v.linkMap[link.Id] = link
|
v.linkMap[link.Id] = link
|
||||||
v.Unlock()
|
v.Unlock()
|
||||||
if !s.waitStatus(clientId, link.Id) {
|
if !s.waitStatus(clientId, link.Id) {
|
||||||
err = errors.New("connect fail")
|
err = errors.New(fmt.Sprintf("connect target %s fail", link.Host))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -54,6 +54,9 @@ func (s *Link) Run(flow bool) {
|
|||||||
}
|
}
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
|
if s.Conn == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
if s.UdpListener != nil && s.UdpRemoteAddr != nil {
|
if s.UdpListener != nil && s.UdpRemoteAddr != nil {
|
||||||
s.UdpListener.WriteToUDP(content, s.UdpRemoteAddr)
|
s.UdpListener.WriteToUDP(content, s.UdpRemoteAddr)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user