mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-26 15:24:44 +00:00
rename SocksServer to Server
This commit is contained in:
1 parent
42907ff2e8
commit
991cea01ab
4 files changed
+16
-16
No files matched your search
+2
-2
@@ -8,7 +8,7 @@ import (
|
||||
"github.com/v2ray/v2ray-core/transport/hub"
|
||||
)
|
||||
|
||||
func (this *SocksServer) listenUDP(port v2net.Port) error {
|
||||
func (this *Server) listenUDP(port v2net.Port) error {
|
||||
this.udpServer = hub.NewUDPServer(this.packetDispatcher)
|
||||
udpHub, err := hub.ListenUDP(port, this.handleUDPPayload)
|
||||
if err != nil {
|
||||
@@ -22,7 +22,7 @@ func (this *SocksServer) listenUDP(port v2net.Port) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (this *SocksServer) handleUDPPayload(payload *alloc.Buffer, source v2net.Destination) {
|
||||
func (this *Server) handleUDPPayload(payload *alloc.Buffer, source v2net.Destination) {
|
||||
log.Info("Socks: Client UDP connection from ", source)
|
||||
request, err := protocol.ReadUDPRequest(payload.Value)
|
||||
payload.Release()
|
||||
|
||||
Reference in new issue
Block a user