Quellcode durchsuchen

rename udp.go to hub.go

v2ray vor 9 Jahren
Ursprung
Commit
2a778762b1
1 geänderte Dateien mit 6 neuen und 0 gelöschten Zeilen
  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
+}