aboutsummaryrefslogtreecommitdiffstats
path: root/device/device.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-17 15:35:20 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-17 15:35:20 +0200
commitc718f3940d6546f83cc14c4f121d52470a705c31 (patch)
treecb51832e060c782be265865778bcb36f17058c9e /device/device.go
parentwintun: make certain methods private (diff)
downloadwireguard-go-c718f3940d6546f83cc14c4f121d52470a705c31.tar.xz
wireguard-go-c718f3940d6546f83cc14c4f121d52470a705c31.zip
device: fail to give bind if it doesn't exist
Diffstat (limited to '')
-rw-r--r--device/device.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/device/device.go b/device/device.go
index ef269f5..fa7ed88 100644
--- a/device/device.go
+++ b/device/device.go
@@ -133,6 +133,7 @@ func deviceUpdateState(device *Device) {
switch newIsUp {
case true:
if err := device.BindUpdate(); err != nil {
+ device.log.Error.Printf("Unable to update bind: %v\n", err)
device.isUp.Set(false)
break
}