Fix lint error
This commit is contained in:
parent
6aacada852
commit
434fac52b7
3 changed files with 9 additions and 7 deletions
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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue