mirror of
				https://github.com/juanfont/headscale.git
				synced 2025-10-28 10:51:44 +01:00 
			
		
		
		
	Fix lint
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
		
							parent
							
								
									21ec543d37
								
							
						
					
					
						commit
						e8b3de494e
					
				@ -19,6 +19,7 @@ import (
 | 
			
		||||
 | 
			
		||||
const (
 | 
			
		||||
	HeadscaleDateTimeFormat = "2006-01-02 15:04:05"
 | 
			
		||||
	SocketWritePermissions  = 0o666
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func getHeadscaleApp() (*headscale.Headscale, error) {
 | 
			
		||||
@ -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().
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user