aboutsummaryrefslogtreecommitdiffstats
path: root/src/uapi_linux.go
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2017-08-11 16:18:20 +0200
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2017-08-11 16:18:20 +0200
commita4eff12d7f749c992247579161c4ce9e60e2df47 (patch)
tree6032dd0a96ced8313d7199e569ab657f3ba91ca7 /src/uapi_linux.go
parentNumber of fixes in response to code review (diff)
downloadwireguard-go-a4eff12d7f749c992247579161c4ce9e60e2df47.tar.xz
wireguard-go-a4eff12d7f749c992247579161c4ce9e60e2df47.zip
Improved receive.go
- Fixed configuration listen-port semantics - Improved receive.go code for updating listen port - Updated under load detection, how follows the kernel space implementation - Fixed trie bug accidentally introduced in last commit - Added interface name to log (format still subject to change) - Can now configure the logging level using the LOG_LEVEL variable - Begin porting netsh.sh tests - A number of smaller changes
Diffstat (limited to 'src/uapi_linux.go')
-rw-r--r--src/uapi_linux.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/uapi_linux.go b/src/uapi_linux.go
index fd56b5a..b5dd663 100644
--- a/src/uapi_linux.go
+++ b/src/uapi_linux.go
@@ -44,7 +44,12 @@ func (l *UAPIListener) Accept() (net.Conn, error) {
}
func (l *UAPIListener) Close() error {
- return l.listener.Close()
+ err1 := unix.Close(l.inotifyFd)
+ err2 := l.listener.Close()
+ if err1 != nil {
+ return err1
+ }
+ return err2
}
func (l *UAPIListener) Addr() net.Addr {