Procházet zdrojové kódy

rename udp.go to hub.go

v2ray před 9 roky
rodič
revize
2a778762b1
1 změnil soubory, kde provedl 6 přidání a 0 odebrání
  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
+}