Improve error processing

This commit is contained in:
世界
2022-07-30 09:57:02 +08:00
parent 9b9b5ebb72
commit d3378a575c
8 changed files with 38 additions and 8 deletions

View File

@@ -66,6 +66,10 @@ func (h *Shadowsocks) NewPacketConnection(ctx context.Context, conn N.PacketConn
return NewPacketConnection(ctx, h, conn, metadata)
}
func (h *Shadowsocks) Close() error {
return common.Close(h.multiplexDialer)
}
var _ N.Dialer = (*shadowsocksDialer)(nil)
type shadowsocksDialer Shadowsocks