mirror of
https://github.com/netbirdio/netbird.git
synced 2026-07-18 20:49:56 +00:00
17 lines
446 B
Go
17 lines
446 B
Go
//go:build !linux && !darwin && !freebsd
|
|
|
|
package cmd
|
|
|
|
import (
|
|
"fmt"
|
|
"net"
|
|
"runtime"
|
|
)
|
|
|
|
// peerUID is unimplemented on this platform, so the trust-on-first-use socket
|
|
// migration cannot run here. Configure --socket-owner explicitly, or use
|
|
// --disable-strict-socket. (Windows uses a TCP socket and never reaches this.)
|
|
func peerUID(net.Conn) (int, error) {
|
|
return 0, fmt.Errorf("peer credential check not supported on %s", runtime.GOOS)
|
|
}
|