mirror of
https://github.com/fatedier/frp.git
synced 2025-08-02 03:59:03 +00:00
frps: release resources in service.Close() (#4667)
This commit is contained in:
@@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user