summaryrefslogtreecommitdiff
path: root/src/tun.go
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2017-10-16 21:33:47 +0200
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2017-10-16 21:33:47 +0200
commite86d03dca23e5adcbd1c7bd30157bc7d19a932d7 (patch)
tree5792ecf8bad5a76c96033ceeef32a91df7d344b2 /src/tun.go
parenta72b0f7ae5dda27d839bb317b7c01d11b215e77a (diff)
downloadwireguard-go-e86d03dca23e5adcbd1c7bd30157bc7d19a932d7.tar.gz
wireguard-go-e86d03dca23e5adcbd1c7bd30157bc7d19a932d7.zip
Initial implementation of source caching
Yet untested.
Diffstat (limited to 'src/tun.go')
-rw-r--r--src/tun.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tun.go b/src/tun.go
index 8e8c759..9eed987 100644
--- a/src/tun.go
+++ b/src/tun.go
@@ -47,7 +47,7 @@ func (device *Device) RoutineTUNEventReader() {
if !device.tun.isUp.Get() {
logInfo.Println("Interface set up")
device.tun.isUp.Set(true)
- updateUDPConn(device)
+ UpdateUDPListener(device)
}
}
@@ -55,7 +55,7 @@ func (device *Device) RoutineTUNEventReader() {
if device.tun.isUp.Get() {
logInfo.Println("Interface set down")
device.tun.isUp.Set(false)
- closeUDPConn(device)
+ CloseUDPListener(device)
}
}
}