mirror of
https://github.com/ehang-io/nps.git
synced 2026-11-01 17:30:20 +08:00
命令行模式同步
This commit is contained in:
1 parent
4e6754deb9
commit
c336bf94d8
5 files changed
+9
-9
No files matched your search
+4
-5
@@ -71,7 +71,6 @@ func (s *TRPClient) processor(c *utils.Conn) {
|
||||
if link, err := c.GetLinkInfo(); err != nil {
|
||||
break
|
||||
} else {
|
||||
log.Println(link)
|
||||
s.Lock()
|
||||
s.linkMap[link.Id] = link
|
||||
s.Unlock()
|
||||
@@ -118,10 +117,10 @@ func (s *TRPClient) linkProcess(link *utils.Link, c *utils.Conn) {
|
||||
break
|
||||
}
|
||||
utils.PutBufPoolCopy(buf)
|
||||
if link.ConnType == utils.CONN_UDP {
|
||||
c.Close()
|
||||
break
|
||||
}
|
||||
//if link.ConnType == utils.CONN_UDP {
|
||||
// c.Close()
|
||||
// break
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user