Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
  • Loading branch information
kradalby authored and juanfont committed Oct 31, 2022
1 parent 21ec543 commit e8b3de4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/headscale/cli/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (

const (
HeadscaleDateTimeFormat = "2006-01-02 15:04:05"
SocketWritePermissions = 0o666
)

func getHeadscaleApp() (*headscale.Headscale, error) {
Expand Down Expand Up @@ -83,7 +84,7 @@ func getHeadscaleCLIClient() (context.Context, v1.HeadscaleServiceClient, *grpc.

// Try to give the user better feedback if we cannot write to the headscale
// socket.
socket, err := os.OpenFile(cfg.UnixSocket, os.O_WRONLY, 0o666)
socket, err := os.OpenFile(cfg.UnixSocket, os.O_WRONLY, SocketWritePermissions)
if err != nil {
if os.IsPermission(err) {
log.Fatal().
Expand Down

0 comments on commit e8b3de4

Please sign in to comment.