tailscale/safesocket/safesocket_plan9.go
Brad Fitzpatrick dc7c15fb84 safesocket: don't use srv(3) on plan9
The implementation wasn't right and spun up
infinite goroutines. Thanks to Russ Cox for debugging.

Updates #5794

Change-Id: I21048712401492829009ad6864cc71c6edf61a64
2025-03-24 13:38:39 -07:00

20 lines
356 B
Go

// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause
//go:build plan9
package safesocket
import (
"context"
"net"
)
func connect(_ context.Context, path string) (net.Conn, error) {
return net.Dial("tcp", "localhost:5252")
}
func listen(path string) (net.Listener, error) {
return net.Listen("tcp", "localhost:5252")
}