1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-04-20 04:29:32 -04: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

@@ -25,7 +25,7 @@ type DokodemoDoor struct {
packetDispatcher dispatcher.PacketDispatcher
tcpListener *internet.TCPHub
udpHub *udp.UDPHub
udpServer *udp.UDPServer
udpServer *udp.Server
meta *proxy.InboundHandlerMeta
}
@@ -88,7 +88,7 @@ func (v *DokodemoDoor) Start() error {
}
func (v *DokodemoDoor) ListenUDP() error {
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.handleUDPPackets,