Explorar o código

rename udp.go to hub.go

v2ray %!s(int64=9) %!d(string=hai) anos
pai
achega
2a778762b1
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      transport/internet/udp/hub.go

+ 6 - 0
transport/internet/udp/udp.go → 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
+}