diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-21 17:27:18 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-21 18:48:48 +0200 |
commit | ff3f2455e5cd74bd45c2f124a1d275462e33a4a0 (patch) | |
tree | c201e712664d808f8b166f9ac74f78dbfbcbb76a /uapi_bsd.go | |
parent | Add FreeBSD support (diff) | |
download | wireguard-go-ff3f2455e5cd74bd45c2f124a1d275462e33a4a0.tar.xz wireguard-go-ff3f2455e5cd74bd45c2f124a1d275462e33a4a0.zip |
Rework freebsd support
Diffstat (limited to '')
-rw-r--r-- | uapi_bsd.go (renamed from uapi_darwin.go) | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/uapi_darwin.go b/uapi_bsd.go index 228021f..5f323cb 100644 --- a/uapi_darwin.go +++ b/uapi_bsd.go @@ -1,3 +1,5 @@ +// +build darwin freebsd + /* SPDX-License-Identifier: GPL-2.0 * * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. @@ -91,7 +93,7 @@ func UAPIListen(name string, file *os.File) (net.Listener, error) { if err != nil { return nil, err } - uapi.keventFd, err = unix.Open(socketDirectory, unix.O_EVTONLY, 0) + uapi.keventFd, err = unix.Open(socketDirectory, unix.O_RDONLY, 0) if err != nil { unix.Close(uapi.kqueueFd) return nil, err |