aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/COPYING (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-11-22tunnel: only enable DNS blocking for 0/0 configsJason A. Donenfeld4-40/+29
This lets people use split tunnel DNS for the more common case. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-22installer: remove admin knobs in cleanupJason A. Donenfeld1-0/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-22installer: force modal if KB2921916 is missingJason A. Donenfeld1-7/+19
This goes against user choice, but it's also required to get Windows 7 users upgrading again. Reported-by: /u/tarakan1983 on Reddit Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-20installer: remove memmemJason A. Donenfeld1-116/+8
There's only one 'h' in the search string, so the efficiency is about the same. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-19version: bumpv0.2.3Jason A. Donenfeld1-1/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-19manager: don't serialize a nil tunnelJason A. Donenfeld1-0/+3
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-19ui: add status icon to context menuJason A. Donenfeld1-0/+4
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-19build: bump golang version to 1.15.5Jason A. Donenfeld9-27/+27
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-19ui: re-add systray popup menu tunnel list, but behind submenu if too bigJason A. Donenfeld3-40/+199
This partially reverts commit 851704a761461270eae5b9aaf26711c5527bbc44, but moves the menu into a submenu if there are more than 10 tunnels, suggested by "FatComputerGuy" on reddit. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-18locales: sync with crowdinJason A. Donenfeld16-1571/+4415
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-18updater: remove obsolete syscall stubJason A. Donenfeld1-8/+0
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-18tunnel: mask self before giving routes to windowsJason A. Donenfeld2-0/+9
Otherwise Windows complains. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-18installer: regard KB2921916 exits when prompted to be USEREXIT so fetcher doesn't mindJason A. Donenfeld1-0/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-18version: bumpv0.2.2Jason A. Donenfeld1-1/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-18installer: check for KB2921916's setupapi.dll directlyJason A. Donenfeld1-23/+144
Some people might have the right setupapi.dll without actually having installed the quickfix. Search for a distinguishing feature instead. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-18conf: do not remigrate configs that are pending deletionJason A. Donenfeld1-6/+18
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-18installer: refactor custom actions to appear in chronological orderSimon Rozman2-209/+209
...in the source code. Signed-off-by: Simon Rozman <simon@rozman.si>
2020-11-18installer: prevent the process killing on upgrade cleanupSimon Rozman1-7/+13
When MSI is upgrading previous version, the RemoveExistingProducts shouldn't kill our processes we just installed and started. Signed-off-by: Simon Rozman <simon@rozman.si>
2020-11-18installer: ignore remove failuresSimon Rozman1-1/+2
On upgrades from <=0.1.1 there's a short window, where new tunnel service may delete the Wintun 0.8 driver from the store, while 0.1.1 removal is about to do the same, and fails with "File not found". The computer ended up with the old WireGuard installed. Signed-off-by: Simon Rozman <simon@rozman.si>
2020-11-18mod: bump for x/sys/svc/mgr fix for UpdateConfig(Config())Jason A. Donenfeld2-12/+9
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-17installer: disable ROLLBACKJason A. Donenfeld1-0/+1
This causes more problems than it solves. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-17conf: delay removal of old configs until next rebootJason A. Donenfeld1-7/+15
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-17updater: BOOLEAN is a char, whereas BOOL is an intJason A. Donenfeld1-2/+2
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-17fetcher: styleJason A. Donenfeld1-2/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-17updater: SetFileInformationByHandle moved into x/sysJason A. Donenfeld3-18/+8
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-17version: bumpv0.2.1Jason A. Donenfeld1-1/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-17build: bump wintunJason A. Donenfeld2-2/+2
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-17version: bumpv0.2Jason A. Donenfeld1-1/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-17conf: do not attempt to create programfilesJason A. Donenfeld1-1/+2
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-17conf: cleanup final path buffer handlingJason A. Donenfeld1-7/+12
And insist that CreateFile regard directories. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-17updater: handle deletion more smoothlyJason A. Donenfeld2-21/+50
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-17fetcher: do not append .msi to random filenameJason A. Donenfeld1-2/+1
It's actually not required, and we don't do it in updater. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-17fetcher: check WinVerifyTrust before executionJason A. Donenfeld2-5/+21
Our YubiHSM signature is much stronger than the junky authenticode one, but still, it can't hurt. This also hedges against anti-virus in the event that we forget to sign it -- A/V will inspect whatever code the fetcher executes, and so we only want to execute authenticode-signed MSIs, to avoid training their heuristics. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-17updater: do not allow WinVerifyTrust to use UIJason A. Donenfeld1-1/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-16conf: do best-effort service argument migrationJason A. Donenfeld1-0/+53
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-16mod: bump for recent conf additionsJason A. Donenfeld3-26/+10
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-16fetcher: user exit is not a real errorJason A. Donenfeld1-0/+1
This is returned by our custom action's method to launch wireguard and abort. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-16installer: launch GUI before attempting a reinstallSimon Rozman2-8/+34
With the recently introduced wireguard-installer.exe an issue in MSI internal caching appeared. With the temporary MSI file used at install time gone, the MSI was unable to load our custom actions in the reinstall attempt. Rather than attempting to reinstall the product and fail, the MSI was upgraded to launch GUI early in the reinstall attempt and cancel the execute sequence then. Signed-off-by: Simon Rozman <simon@rozman.si>
2020-11-16installer: add missing thread handle closeSimon Rozman1-0/+1
Signed-off-by: Simon Rozman <simon@rozman.si>
2020-11-16conf: move configuration to C:\Program Files\WireGuard\DataJason A. Donenfeld6-64/+175
It doesn't get wiped out on Windows upgrades. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-16fetcher: introduce downloader utilityJason A. Donenfeld14-0/+2024
This seems easier than having to juggle 4 different architectures. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-16installer: always pass program files via propertyJason A. Donenfeld1-45/+30
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-16installer: use new path for wg.exeJason A. Donenfeld1-3/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-16ui: do not show <nil> as reason when importing empty zipJason A. Donenfeld1-0/+3
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-16go-patches: drop CreateWaitableTimerExJason A. Donenfeld1-406/+0
It causes mysterious crashes. We'll revisit for 1.16. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-16mod: bump x/sys for IsWow64Process2Jason A. Donenfeld6-108/+14
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-16build: llvm doesnt like dashesJason A. Donenfeld2-1/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-16tunnel: do not return a nil error when adding routes failsJason A. Donenfeld1-1/+1
Reported-by: Michael Zhou <mzhou@cse.unsw.edu.au> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-16ui: microsoft is now providing fractional icon sizesJason A. Donenfeld2-2/+2
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-16installer: do not check for Wow64 and KB when removingJason A. Donenfeld1-2/+2
We want removal to be as frictionless as possible. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>