mirror of
https://github.com/juanfont/headscale.git
synced 2025-11-14 11:52:51 +09:00
Fix lint error
This commit is contained in:
7
utils.go
7
utils.go
@@ -6,10 +6,12 @@
|
||||
package headscale
|
||||
|
||||
import (
|
||||
"context"
|
||||
"crypto/rand"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io"
|
||||
"net"
|
||||
"strings"
|
||||
|
||||
"golang.org/x/crypto/nacl/box"
|
||||
@@ -156,3 +158,8 @@ func tailNodesToString(nodes []*tailcfg.Node) string {
|
||||
func tailMapResponseToString(resp tailcfg.MapResponse) string {
|
||||
return fmt.Sprintf("{ Node: %s, Peers: %s }", resp.Node.Name, tailNodesToString(resp.Peers))
|
||||
}
|
||||
|
||||
func GrpcSocketDialer(ctx context.Context, addr string) (net.Conn, error) {
|
||||
var d net.Dialer
|
||||
return d.DialContext(ctx, "unix", addr)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user