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

@@ -100,6 +100,10 @@ func (v *Muxer) SetRewriteHostFunc(f hostRewriteFunc) *Muxer {
return v
}
func (v *Muxer) Close() error {
return v.listener.Close()
}
type ChooseEndpointFunc func() (string, error)
type CreateConnFunc func(remoteAddr string) (net.Conn, error)