rename SocksServer to Server

This commit is contained in:
v2ray committed 2016-04-26 00:33:16 +02:00
1 parent 42907ff2e8
commit 991cea01ab
4 files changed
+16 -16

No files matched your search

+2 -2
View File
@@ -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()