mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-22 08:51:41 +00:00

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>
20 lines
356 B
Go
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")
|
|
}
|