frps: release resources in service.Close() (#4667)

This commit is contained in:
fatedier
2025-02-12 12:22:57 +08:00
committed by GitHub
parent 8b86e1473c
commit e0dd947e6a
6 changed files with 35 additions and 37 deletions

View File

@@ -112,6 +112,10 @@ func (g *Gateway) Run() {
}
}
func (g *Gateway) Close() error {
return g.ln.Close()
}
func (g *Gateway) handleConn(conn net.Conn) {
defer conn.Close()