aboutsummaryrefslogtreecommitdiff
path: root/ipc/uapi_unix.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-12-09 17:55:50 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2021-12-09 23:15:55 +0100
commit9c9e7e2724340280d0ca4ff29c067f2d144562c0 (patch)
tree239826ccafe70e5cee73936d9bcea8989dd33899 /ipc/uapi_unix.go
parent2dd424e2d808703339688ff78e32ed30cd0dfe87 (diff)
downloadwireguard-go-9c9e7e2724340280d0ca4ff29c067f2d144562c0.tar.gz
wireguard-go-9c9e7e2724340280d0ca4ff29c067f2d144562c0.zip
global: apply gofumpt
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ipc/uapi_unix.go')
-rw-r--r--ipc/uapi_unix.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipc/uapi_unix.go b/ipc/uapi_unix.go
index 57caf21..6f1ee47 100644
--- a/ipc/uapi_unix.go
+++ b/ipc/uapi_unix.go
@@ -33,7 +33,7 @@ func sockPath(iface string) string {
}
func UAPIOpen(name string) (*os.File, error) {
- if err := os.MkdirAll(socketDirectory, 0755); err != nil {
+ if err := os.MkdirAll(socketDirectory, 0o755); err != nil {
return nil, err
}
@@ -43,7 +43,7 @@ func UAPIOpen(name string) (*os.File, error) {
return nil, err
}
- oldUmask := unix.Umask(0077)
+ oldUmask := unix.Umask(0o077)
defer unix.Umask(oldUmask)
listener, err := net.ListenUnix("unix", addr)