mirror of
https://github.com/tailscale/tailscale.git
synced 2024-12-01 14:05:39 +00:00
4441609d8f
Also drop the port param from safesocket.Listen. #cleanup Signed-off-by: Maisem Ali <maisem@tailscale.com>
21 lines
372 B
Go
21 lines
372 B
Go
// Copyright (c) Tailscale Inc & AUTHORS
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
package safesocket
|
|
|
|
import (
|
|
"net"
|
|
|
|
"github.com/akutz/memconn"
|
|
)
|
|
|
|
const memName = "Tailscale-IPN"
|
|
|
|
func listen(path string) (net.Listener, error) {
|
|
return memconn.Listen("memu", memName)
|
|
}
|
|
|
|
func connect(_ *ConnectionStrategy) (net.Conn, error) {
|
|
return memconn.Dial("memu", memName)
|
|
}
|