1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-04 08:15:21 -05:00

fix lint warnings

This commit is contained in:
Darien Raymond
2016-12-21 15:37:16 +01:00
parent 99c897992d
commit ceaf5d1178
31 changed files with 96 additions and 85 deletions

View File

@@ -27,7 +27,7 @@ type Server struct {
accepting bool
tcpHub *internet.TCPHub
udpHub *udp.UDPHub
udpServer *udp.UDPServer
udpServer *udp.Server
}
func NewServer(config *ServerConfig, space app.Space, meta *proxy.InboundHandlerMeta) (*Server, error) {
@@ -90,7 +90,7 @@ func (v *Server) Start() error {
v.tcpHub = tcpHub
if v.config.UdpEnabled {
v.udpServer = udp.NewUDPServer(v.packetDispatcher)
v.udpServer = udp.NewServer(v.packetDispatcher)
udpHub, err := udp.ListenUDP(v.meta.Address, v.meta.Port, udp.ListenOption{Callback: v.handlerUDPPayload})
if err != nil {
log.Error("Shadowsocks: Failed to listen UDP on ", v.meta.Address, ":", v.meta.Port, ": ", err)