瀏覽代碼

rename udp.go to hub.go

v2ray 9 年之前
父節點
當前提交
2a778762b1
共有 1 個文件被更改,包括 6 次插入0 次删除
  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
+}