修复「接入网关」无法使用的问题 fixed #207 #218

This commit is contained in:
dushixiang
2022-01-23 22:42:47 +08:00
parent a1a9ca2596
commit 809118f3e9
15 changed files with 83 additions and 53 deletions

View File

@ -44,7 +44,7 @@ func (g *Gateway) Run() {
select {
case t := <-g.Add:
g.tunnels[t.ID] = t
go t.Run()
go t.Open()
case k := <-g.Del:
if _, ok := g.tunnels[k]; ok {
g.tunnels[k].Close()