tailscale/net/udprelay/server_notlinux.go
Jordan Whited 5f34f14e14 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>
2026-01-09 08:51:23 -08:00

18 lines
273 B
Go

// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause
//go:build !linux
package udprelay
import (
"net"
"syscall"
)
func trySetReusePort(_ string, _ string, _ syscall.RawConn) {}
func isReusableSocket(*net.UDPConn) bool {
return false
}