aboutsummaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAgeFilesLines
...
* build: use goproxy when not remasteringJason A. Donenfeld2019-08-272-2/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunnel: do not query real interface nameJason A. Donenfeld2019-08-262-10/+0
| | | | | | | | | | | | We want to enforce the relation between the socket name and the service name, especially since the wintun adapter name might get a 1 or 2 appended depending on weird Nci duplication detection. So we just stick with the configuration-given name throughout. Also, the user can change the adapter name at runtime, which is all the more reason why maybe we shouldn't care about it so much. Reported-by: Nenad Kozul <me@nenadkozul.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* elevate: use upstream windows directory functionJason A. Donenfeld2019-08-263-27/+10
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: enable priority boostJason A. Donenfeld2019-08-262-1/+3
| | | | | | | This makes things a bit more responsive, despite causing some minor issues for Go timers. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* elevate: mark as terminal services awareJason A. Donenfeld2019-08-264-25/+11
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* firewall: use RtlGetNtVersionNumbers for kernel compat checksJason A. Donenfeld2019-08-261-3/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: when check error, reparse textJason A. Donenfeld2019-08-251-2/+3
| | | | | | | Sometimes walk misfires check events. For example, when pressing enter in the title box. This works around the consequences. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* version: use upstream RtlGetVersionJason A. Donenfeld2019-08-243-53/+6
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunnel: move Run into own module to reduce file sizeJason A. Donenfeld2019-08-247-28/+30
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* version: bumpv0.0.22Jason A. Donenfeld2019-08-231-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* mod: update dependenciesJason A. Donenfeld2019-08-222-7/+8
| | | | | | Also commit the 1.13 thing. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* version: bumpv0.0.21Jason A. Donenfeld2019-08-191-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* manager: do not recycle tunnel tracker threadJason A. Donenfeld2019-08-191-1/+9
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* manager: print panics on all go routines not just main oneJason A. Donenfeld2019-08-192-10/+15
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* manager: wait for UIs to quit before quittingJason A. Donenfeld2019-08-191-4/+12
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: increase default widthJason A. Donenfeld2019-08-191-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* quickinstall: deal with paths betterJason A. Donenfeld2019-08-191-7/+6
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* mod: update dependenciesJason A. Donenfeld2019-08-192-9/+10
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* installer: make the two types of post-install execution mutually exclusiveJason A. Donenfeld2019-08-171-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* installer: tame restart managerJason A. Donenfeld2019-08-171-0/+2
| | | | | | This prevents the dialog box from showing. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* installer: kill leftover processes forciblyJason A. Donenfeld2019-08-173-2/+107
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* installer: hardcode %ProgramFiles%\WireGuard install folderSimon Rozman2019-08-161-20/+5
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* installer: clean up logicJason A. Donenfeld2019-08-122-247/+119
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* build: fix batch file status returningSimon Rozman2019-08-122-8/+8
| | | | | | | | | | | | | Apparently, exit /b works only halfway in Windows 8 and later. The %errorlevel% is correct after batch exits, but && and || do not honor it. The `cmd /c exit` doesn't actually quit the batch processing, therefore it must be at the very end of the batch file. Even `goto :eof` resets the return status for && and ||. Source: https://www.computerhope.com/forum/index.php/topic,65815.msg920454.html#msg920454 Signed-off-by: Simon Rozman <simon@rozman.si>
* build: use setlocal to keep build environment localSimon Rozman2019-08-122-25/+12
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* installer: port custom actions from JScript to CSimon Rozman2019-08-094-108/+419
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* installer: unify WIREGUARD_-specific WiX variablesSimon Rozman2019-08-072-9/+9
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* build: simplify path managementSimon Rozman2019-08-071-3/+3
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* build: support building from arbitrary folderSimon Rozman2019-08-072-11/+13
| | | | | | | | The :installdeps used .deps folder in the current working folder, while build failed expecting to find sources in the current working folder as well. Signed-off-by: Simon Rozman <simon@rozman.si>
* version: bumpv0.0.20Jason A. Donenfeld2019-08-051-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* service: fix typo in error messageSimon Rozman2019-08-051-1/+1
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* installer: raise UI on MSI relaunch and add DO_NOT_LAUNCH overrideSimon Rozman2019-08-051-2/+9
| | | | | | | | | | Clicking on the MSI of an already installed WireGuard launches/raises WireGuard UI now. WireGuard UI launching can now also be disabled by invoking: `msiexec /i wireguard...msi DO_NOT_LAUNCH=1` Signed-off-by: Simon Rozman <simon@rozman.si>
* elevate: consider ImageBaseAddress to be sufficiently stableJason A. Donenfeld2019-08-054-26/+33
| | | | | | | GetModuleHandle technically returns an opaque value, so comparing to the PEB might in some theoretical sense be cleaner. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* elevate: move service/token into proper moduleJason A. Donenfeld2019-08-056-25/+36
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* elevate: require builtin admins group and proper reg keyJason A. Donenfeld2019-08-051-1/+24
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* elevate: do not rely on undocumented ldr functionJason A. Donenfeld2019-08-053-19/+72
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* elevate: do not show UAC prompt for frictionless UXJason A. Donenfeld2019-08-055-1/+297
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: remove SetFocus hack from EditDialogAlexander Neumann2019-08-051-2/+0
| | | | | Signed-off-by: Alexander Neumann <alexander.neumann@picos-software.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: raise window more aggressivelyJason A. Donenfeld2019-08-051-5/+18
| | | | | | | Since we might now be shell-exec'ing from elsewhere, we probably want to do a bit of input attachment shuffling. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* go.mod: operate like a normal go moduleJason A. Donenfeld2019-08-055-12/+60
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* version: bumpv0.0.19Jason A. Donenfeld2019-08-051-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* installer: bump wintunJason A. Donenfeld2019-08-051-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunnel: styleJason A. Donenfeld2019-08-031-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* installer: unify XML empty-element spacingSimon Rozman2019-08-032-28/+28
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* version: bumpv0.0.18Jason A. Donenfeld2019-08-021-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* installer: bump wintunJason A. Donenfeld2019-08-021-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* installer: disable rollbackJason A. Donenfeld2019-08-011-0/+1
| | | | | | It slows things down and doesn't help us all that much. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: improve error handlingAlexander Neumann2019-07-2911-138/+401
| | | | | Signed-off-by: Alexander Neumann <an2048@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: use now exposed ItemCountChanged eventAlexander Neumann2019-07-221-2/+1
| | | | | Signed-off-by: Alexander Neumann <an2048@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: update action enabled status also when model items changeAlexander Neumann2019-07-221-0/+1
| | | | | | | This fixes using the Ctrl+A shortcut in the case the log table view never has been focused before. Signed-off-by: Alexander Neumann <an2048@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>