tailscale/safesocket/safesocket_plan9.go
Brad Fitzpatrick af504fa678 safesocket: fix Plan 9 implementation
This wasn't right; it was spinning up new goroutines non-stop.
Revert to a boring localhost TCP implementation for now.

Updates #5794

Change-Id: If93caa20a12ee4e741c0c72b0d91cc0cc5870152
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2025-04-02 07:36:04 -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")
}