mirror of
https://github.com/fatedier/frp.git
synced 2026-01-11 22:23:12 +00:00
frps: release resources in service.Close() (#4667)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user