1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-28 13:05:28 -05:00

rename udp.Server

This commit is contained in:
Darien Raymond
2017-01-27 14:45:16 +01:00
parent 83c35c1e41
commit 18e1ca85aa
4 changed files with 11 additions and 11 deletions

View File

@@ -24,7 +24,7 @@ import (
type Server struct {
packetDispatcher dispatcher.Interface
config *ServerConfig
udpServer *udp.Server
udpServer *udp.Dispatcher
}
// NewServer creates a new Server object.
@@ -41,7 +41,7 @@ func NewServer(ctx context.Context, config *ServerConfig) (*Server, error) {
if s.packetDispatcher == nil {
return errors.New("Socks|Server: Dispatcher is not found in the space.")
}
s.udpServer = udp.NewServer(s.packetDispatcher)
s.udpServer = udp.NewDispatcher(s.packetDispatcher)
return nil
})
return s, nil