cosmetic
This commit is contained in:
1 parent
9dd15f4abf
commit
5b7666a850
1 file changed
+1
-1
@@ -142,7 +142,7 @@ func (router *Router) acceptTCP(tcpConn *net.TCPConn) {
|
||||
NewLocalConnection(connRemote, UnknownPeerName, tcpConn, nil, router)
|
||||
}
|
||||
|
||||
func (router *Router) listenUDP(localPort int, handle *pcap.Handle) *net.UDPConn {
|
||||
func (router *Router) listenUDP(localPort int, handle *pcap.Handle) *net.UDPConn {
|
||||
localAddr, err := net.ResolveUDPAddr("udp4", fmt.Sprint(":", localPort))
|
||||
checkFatal(err)
|
||||
conn, err := net.ListenUDP("udp4", localAddr)
|
||||
|
||||
Reference in new issue
Block a user