From 2a778762b135a6f91535bbca52badfae5ccbc5c5 Mon Sep 17 00:00:00 2001 From: v2ray Date: Mon, 15 Aug 2016 21:33:21 +0200 Subject: [PATCH] rename udp.go to hub.go --- transport/internet/udp/{udp.go => hub.go} | 6 ++++++ 1 file changed, 6 insertions(+) rename transport/internet/udp/{udp.go => hub.go} (93%) diff --git a/transport/internet/udp/udp.go b/transport/internet/udp/hub.go similarity index 93% rename from transport/internet/udp/udp.go rename to transport/internet/udp/hub.go index a04db0e8..460589df 100644 --- a/transport/internet/udp/udp.go +++ b/transport/internet/udp/hub.go @@ -98,3 +98,9 @@ func (this *UDPHub) Running() bool { return this.accepting } + +// Connection return the net.Conn underneath this hub. +// Private: Visible for testing only +func (this *UDPHub) Connection() net.Conn { + return this.conn +}