Explorar el Código

rename udp.go to hub.go

v2ray hace 9 años
padre
commit
2a778762b1
Se han modificado 1 ficheros con 6 adiciones y 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
+}