Files
privatae-bastion/client-go/service_sock_other.go
T
Privatae e4c9b69b46
ci / personal-data (push) Successful in 5s
ci / test (push) Successful in 3m4s
ci / fuzz (push) Successful in 3m45s
bastion 0.53.2
2026-10-20 04:42:14 +00:00

17 lines
473 B
Go

//go:build !linux
package main
import (
"errors"
"net"
"time"
)
// serviceDialSocket: only Linux can pin the socket's inode across the dial
// (/proc/self/fd), and a name re-resolved at dial time can be swapped by the
// container that owns the directory. So the slot forward refuses elsewhere.
func serviceDialSocket(sock string, timeout time.Duration) (net.Conn, error) {
return nil, errors.New("the service slot forward needs Linux to pin the server's socket")
}