summaryrefslogtreecommitdiffhomepage
path: root/net/captivedetection/rawconn.go
blob: 3c6f65f84692ec9168d1b08a2d34346075621ca8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright (c) Tailscale Inc & contributors
// SPDX-License-Identifier: BSD-3-Clause

//go:build !(ios || darwin)

package captivedetection

import (
	"syscall"

	"tailscale.com/types/logger"
)

// setSocketInterfaceIndex sets the IP_BOUND_IF socket option on the given RawConn.
// This forces the socket to use the given interface.
func setSocketInterfaceIndex(c syscall.RawConn, ifIndex int, logf logger.Logf) error {
	// No-op on non-Darwin platforms.
	return nil
}