mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 01:57:12 -05:00
comments
This commit is contained in:
parent
94e930175a
commit
d801be71ea
@ -112,6 +112,7 @@ func ListenUDP(address net.Address, port net.Port, option ListenOption) (*Hub, e
|
|||||||
return hub, nil
|
return hub, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Close implements net.Listener.
|
||||||
func (h *Hub) Close() error {
|
func (h *Hub) Close() error {
|
||||||
h.conn.Close()
|
h.conn.Close()
|
||||||
return nil
|
return nil
|
||||||
@ -161,6 +162,7 @@ func (h *Hub) start() {
|
|||||||
h.queue.Close()
|
h.queue.Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Addr implements net.Listener.
|
||||||
func (h *Hub) Addr() net.Addr {
|
func (h *Hub) Addr() net.Addr {
|
||||||
return h.conn.LocalAddr()
|
return h.conn.LocalAddr()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user