aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/main.go (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-04-05updater: allow updating from the command lineJason A. Donenfeld1-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>
2020-03-15l18n: add stub for cross platformJason A. Donenfeld1-2/+0
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-03-15l18n: add French translation stubSimon Rozman1-1/+1
Signed-off-by: Simon Rozman <simon@rozman.si>
2020-03-15l18n: add Japanese translation stubSimon Rozman1-1/+1
Signed-off-by: Simon Rozman <simon@rozman.si>
2020-03-15l18n: add Slovenian translationSimon Rozman1-1/+1
Signed-off-by: Simon Rozman <simon@rozman.si>
2020-03-15l18n: add localization supportSimon Rozman1-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>
2019-09-27mod: bump versionsJason A. Donenfeld1-2/+2
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-09-23global: use SECURITY_DESCRIPTOR apis from x/sys/windowsJason A. Donenfeld1-6/+3
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-08-30manager: adjust for wintun api changesJason A. Donenfeld1-29/+0
Also get rid of the "Local Area Connection" hack and "/wintun /deleteall". Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-08-30main: display localized "Administrators" group nameSimon Rozman1-4/+8
Signed-off-by: Simon Rozman <simon@rozman.si>
2019-08-30elevate: check for desktop admin ownershipJason A. Donenfeld1-0/+11
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-08-30elevate: use more strict check for admin groupJason A. Donenfeld1-1/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-08-24tunnel: move Run into own module to reduce file sizeJason A. Donenfeld1-2/+3
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-08-05elevate: move service/token into proper moduleJason A. Donenfeld1-3/+2
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-08-05elevate: do not show UAC prompt for frictionless UXJason A. Donenfeld1-1/+2
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-06-13main: cleanup info printingJason A. Donenfeld1-4/+6
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-06-10main: add wintun cleanup helperJason A. Donenfeld1-0/+30
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-06-07main: update usage infoSimon Rozman1-1/+1
Signed-off-by: Simon Rozman <simon@rozman.si>
2019-06-07tunnel: retain SeLoadDriverPrivilegeJason A. Donenfeld1-1/+1
This is a big loss. We'll need to revisit this. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-05-27global: several helpers are now upstreamJason A. Donenfeld1-9/+8
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-05-20service: split into tunnel and managerJason A. Donenfeld1-10/+11
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-05-15ui: drop permissionsJason A. Donenfeld1-0/+4
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-05-14service: clean up token manglingJason A. Donenfeld1-21/+4
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-05-14global: use tab after //sysJason A. Donenfeld1-3/+3
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-05-14global: regroup all importsJason A. Donenfeld1-4/+5
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-05-08ringlogger: add a basic CLI log dumping commandJason A. Donenfeld1-0/+15
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-05-08main: when called with no args, check for admin group membershipJason A. Donenfeld1-5/+33
This should cut back on user confusion. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-05-07ringlogger: export R/O handle for UI processJason A. Donenfeld1-2/+0
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-05-05ui: improve update logging and tray logicJason A. Donenfeld1-0/+2
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-04-27ui: simplify everythingJason A. Donenfeld1-0/+5
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-04-25main: forbid wow64 executionsJason A. Donenfeld1-0/+19
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-04-02ringlogger: give unprivd access via inheritable mapping handleJason A. Donenfeld1-2/+2
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-03-03tunnel: do not rely on submoduleJason A. Donenfeld1-2/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-03-03tunnel: simplify shutdownJason A. Donenfeld1-11/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-02-28ipc: implement event system with pipesJason A. Donenfeld1-3/+7
Also use Go 1.12's Sysconn Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-02-28main: add initial dispatcher entry pointJason A. Donenfeld1-0/+165
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>