1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-31 06:25:32 -05:00
This commit is contained in:
Darien Raymond
2018-02-12 11:53:41 +01:00
parent 94e930175a
commit d801be71ea

View File

@@ -112,6 +112,7 @@ func ListenUDP(address net.Address, port net.Port, option ListenOption) (*Hub, e
return hub, nil
}
// Close implements net.Listener.
func (h *Hub) Close() error {
h.conn.Close()
return nil
@@ -161,6 +162,7 @@ func (h *Hub) start() {
h.queue.Close()
}
// Addr implements net.Listener.
func (h *Hub) Addr() net.Addr {
return h.conn.LocalAddr()
}