aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/main.go (follow)
Commit message (Collapse)AuthorAgeFilesLines
* updater: allow updating from the command lineJason A. Donenfeld2020-04-051-0/+39
| | | | | | | | | 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>
* l18n: add stub for cross platformJason A. Donenfeld2020-03-151-2/+0
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* l18n: add French translation stubSimon Rozman2020-03-151-1/+1
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* l18n: add Japanese translation stubSimon Rozman2020-03-151-1/+1
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* l18n: add Slovenian translationSimon Rozman2020-03-151-1/+1
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* l18n: add localization supportSimon Rozman2020-03-151-18/+20
| | | | | | | | | | | | | | | | | | | | | Revise the messages to make them localizable. Note: The log messages are not marked for localization. Probably, we want to keep log files in English for easier global troubleshooting. Having a user run `go generate` requires a valid and up-to-date Go environment. Rather than instructing users how to setup the environment correctly, the `go generate` was integrated into build.bat. This reuses the Go building environment downloaded and prepared by build.bat to provide controllable and consistent result. Use `make generate` on Linux. As the zgotext.go output varies for GOARCH=386 and amd64, one had to be chosen to provide stable output. The former is the first one to build in build.bat. Signed-off-by: Simon Rozman <simon@rozman.si>
* mod: bump versionsJason A. Donenfeld2019-09-271-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: use SECURITY_DESCRIPTOR apis from x/sys/windowsJason A. Donenfeld2019-09-231-6/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* manager: adjust for wintun api changesJason A. Donenfeld2019-08-301-29/+0
| | | | | | | Also get rid of the "Local Area Connection" hack and "/wintun /deleteall". Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* main: display localized "Administrators" group nameSimon Rozman2019-08-301-4/+8
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* elevate: check for desktop admin ownershipJason A. Donenfeld2019-08-301-0/+11
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* elevate: use more strict check for admin groupJason A. Donenfeld2019-08-301-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunnel: move Run into own module to reduce file sizeJason A. Donenfeld2019-08-241-2/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* elevate: move service/token into proper moduleJason A. Donenfeld2019-08-051-3/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* elevate: do not show UAC prompt for frictionless UXJason A. Donenfeld2019-08-051-1/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* main: cleanup info printingJason A. Donenfeld2019-06-131-4/+6
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* main: add wintun cleanup helperJason A. Donenfeld2019-06-101-0/+30
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* main: update usage infoSimon Rozman2019-06-071-1/+1
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* tunnel: retain SeLoadDriverPrivilegeJason A. Donenfeld2019-06-071-1/+1
| | | | | | This is a big loss. We'll need to revisit this. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: several helpers are now upstreamJason A. Donenfeld2019-05-271-9/+8
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* service: split into tunnel and managerJason A. Donenfeld2019-05-201-10/+11
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: drop permissionsJason A. Donenfeld2019-05-151-0/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* service: clean up token manglingJason A. Donenfeld2019-05-141-21/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: use tab after //sysJason A. Donenfeld2019-05-141-3/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: regroup all importsJason A. Donenfeld2019-05-141-4/+5
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ringlogger: add a basic CLI log dumping commandJason A. Donenfeld2019-05-081-0/+15
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* main: when called with no args, check for admin group membershipJason A. Donenfeld2019-05-081-5/+33
| | | | | | This should cut back on user confusion. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ringlogger: export R/O handle for UI processJason A. Donenfeld2019-05-071-2/+0
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: improve update logging and tray logicJason A. Donenfeld2019-05-051-0/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: simplify everythingJason A. Donenfeld2019-04-271-0/+5
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* main: forbid wow64 executionsJason A. Donenfeld2019-04-251-0/+19
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ringlogger: give unprivd access via inheritable mapping handleJason A. Donenfeld2019-04-021-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunnel: do not rely on submoduleJason A. Donenfeld2019-03-031-2/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunnel: simplify shutdownJason A. Donenfeld2019-03-031-11/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ipc: implement event system with pipesJason A. Donenfeld2019-02-281-3/+7
| | | | | | Also use Go 1.12's Sysconn Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* main: add initial dispatcher entry pointJason A. Donenfeld2019-02-281-0/+165
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>