From 3d4ddd53f30cb563556e63c4cfc316f7108f0f8c Mon Sep 17 00:00:00 2001 From: Viktor Liu Date: Wed, 9 Jul 2025 12:44:34 +0200 Subject: [PATCH] Fix review issues --- client/iface/bind/ice_bind.go | 4 ++-- sharedsock/sock_linux.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/iface/bind/ice_bind.go b/client/iface/bind/ice_bind.go index 7df4a895f..d63ba7309 100644 --- a/client/iface/bind/ice_bind.go +++ b/client/iface/bind/ice_bind.go @@ -226,7 +226,7 @@ func (s *ICEBind) createReceiverFn(pc wgConn.BatchReader, conn *net.UDPConn, rxO msg := &(*msgs)[i] // todo: handle err - ok, _ := s.filterOutStunMessages(msg.Buffers, msg.N, msg.Addr, isIPv6) + ok, _ := s.filterOutStunMessages(msg.Buffers, msg.N, msg.Addr) if ok { continue } @@ -253,7 +253,7 @@ func (s *ICEBind) createReceiverFn(pc wgConn.BatchReader, conn *net.UDPConn, rxO } } -func (s *ICEBind) filterOutStunMessages(buffers [][]byte, n int, addr net.Addr, isIPv6 bool) (bool, error) { +func (s *ICEBind) filterOutStunMessages(buffers [][]byte, n int, addr net.Addr) (bool, error) { for i := range buffers { if !stun.IsMessage(buffers[i]) { continue diff --git a/sharedsock/sock_linux.go b/sharedsock/sock_linux.go index a47b68185..0f17ecbb5 100644 --- a/sharedsock/sock_linux.go +++ b/sharedsock/sock_linux.go @@ -162,7 +162,7 @@ func (s *SharedSocket) LocalAddr() net.Addr { } if s.conn6 != nil { return &net.UDPAddr{ - IP: net.IPv6zero, + IP: net.IPv6unspecified, Port: s.port, } }