aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tunnel
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-04-05 00:28:47 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2020-04-05 00:39:49 -0600
commit34e3a000c561fd2c8ef65bdb5a296f0b03095a99 (patch)
tree92557d70ea2433808636e9aafed27bcd5c12bcc2 /tunnel
parentsyntax: insist on 256-bit keys, not 257-bit or 258-bit (diff)
downloadwireguard-windows-34e3a000c561fd2c8ef65bdb5a296f0b03095a99.tar.xz
wireguard-windows-34e3a000c561fd2c8ef65bdb5a296f0b03095a99.zip
updater: allow updating from the command line
The administrator user may run `wireguard.exe /update`, which will check for updates and install it if available. A log file may be written using `wireguard.exe /update path\to\log\file.txt`. Requested-by: Elliot Saba <staticfloat@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tunnel')
-rw-r--r--tunnel/defaultroutemonitor.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tunnel/defaultroutemonitor.go b/tunnel/defaultroutemonitor.go
index 68853fd1..e71aad0d 100644
--- a/tunnel/defaultroutemonitor.go
+++ b/tunnel/defaultroutemonitor.go
@@ -39,7 +39,7 @@ func bindSocketRoute(family winipcfg.AddressFamily, device *device.Device, ourLU
continue
}
- if r[i].Metric + iface.Metric < lowestMetric {
+ if r[i].Metric+iface.Metric < lowestMetric {
lowestMetric = r[i].Metric + iface.Metric
index = r[i].InterfaceIndex
luid = r[i].InterfaceLUID