mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-24 02:25:24 +00:00
13 lines
182 B
Go
13 lines
182 B
Go
|
package util
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"net"
|
||
|
)
|
||
|
|
||
|
func GrpcSocketDialer(ctx context.Context, addr string) (net.Conn, error) {
|
||
|
var d net.Dialer
|
||
|
|
||
|
return d.DialContext(ctx, "unix", addr)
|
||
|
}
|