From c7409d7ac6e7eec0e7e10bc2dfff63e718d811b9 Mon Sep 17 00:00:00 2001 From: kr328 Date: Tue, 25 May 2021 20:28:57 +0800 Subject: [PATCH] Chore: cleanup code --- core/src/main/golang/tun/udp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/golang/tun/udp.go b/core/src/main/golang/tun/udp.go index d7fc4375..98d02972 100644 --- a/core/src/main/golang/tun/udp.go +++ b/core/src/main/golang/tun/udp.go @@ -33,7 +33,7 @@ func (u *udpPacket) Drop() { func (u *udpPacket) LocalAddr() net.Addr { return &net.UDPAddr{ IP: u.source.IP, - Port: int(u.source.Port), + Port: u.source.Port, Zone: "", } }