net/udprelay: apply netns Control func to server socket(s)

To prevent peer relay servers from sending packets *over* Tailscale.

Updates tailscale/corp#35651

Signed-off-by: Jordan Whited <jordan@tailscale.com>
This commit is contained in:
Jordan Whited
2026-01-07 15:17:38 -08:00
committed by Jordan Whited
parent 4c37141ab7
commit 5f34f14e14
3 changed files with 30 additions and 6 deletions
+1 -3
View File
@@ -10,9 +10,7 @@ import (
"syscall"
)
func listenControl(_ string, _ string, _ syscall.RawConn) error {
return nil
}
func trySetReusePort(_ string, _ string, _ syscall.RawConn) {}
func isReusableSocket(*net.UDPConn) bool {
return false