mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-30 05:25:35 +00:00
758c37b83d
So that darwin can log there without panicking during tests. Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
24 lines
575 B
Go
24 lines
575 B
Go
// Copyright (c) 2020 Tailscale Inc & AUTHORS All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
//go:build (!linux && !windows && !darwin) || (darwin && ts_macext)
|
|
// +build !linux,!windows,!darwin darwin,ts_macext
|
|
|
|
package netns
|
|
|
|
import (
|
|
"syscall"
|
|
|
|
"tailscale.com/types/logger"
|
|
)
|
|
|
|
func control(logger.Logf) func(network, address string, c syscall.RawConn) error {
|
|
return controlC
|
|
}
|
|
|
|
// controlC does nothing to c.
|
|
func controlC(network, address string, c syscall.RawConn) error {
|
|
return nil
|
|
}
|