aboutsummaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAgeFilesLines
* winipcfg, embeddable-dll-service, wintrust: fix Go 1.15 checkptr violationsHEADmasterBrad Fitzpatrick12 hours6-40/+47
| | | | | | | | | | Avoids "converted pointer straddles allocation" failures at runtime when building binaries in race mode with Go 1.15, which enables checkptr: https://golang.org/doc/go1.15#windows Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com> [Jason: Note Go 1.16/1.17 todo item.] Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* build: use crowdin backdoor instead of api keyJason A. Donenfeld8 days1-2/+1
| | | | | Suggested-by: Harsh Shandilya <me@msfjarvis.dev> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunnel/winipcfg: set SysProcAttr.HideWindow when running netsh.shBrad Fitzpatrick2020-10-041-0/+3
| | | | | | | | Prevents cmd.exe window flashes when running binaries in elevated interactive contexts for debugging. Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* go: update to 1.15.2Jason A. Donenfeld2020-09-113-9/+149
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* locales: add ro and skJason A. Donenfeld2020-09-075-194/+2945
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* build: update C toolchainsJason A. Donenfeld2020-09-071-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* README: mention CrowdInJason A. Donenfeld2020-08-181-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* go: use highres timer on newer Windows 10Jason A. Donenfeld2020-08-181-0/+395
| | | | | | | | | | | WireGuard makes heavy use of timers, and the low precision of Windows timers as currently used in Go isn't very nice, and also seems to result in worse battery life because of the gross winmm.dll timerBeginPeriod trick. John Starks suggested this new parameter to make a high resolution timer on NT, and Alex implemented it, so import Alex's test patch to see how this goes. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* go: remove exit(2) from ctrl+c handlerJason A. Donenfeld2020-08-181-0/+44
| | | | | | | | | | Simon reported that he'd have hard to diagnose exits at boot time with Go 1.14 but not with 1.13. It turns out that the ctrl+c handler added by 1.14 at some point in the cycle includes some wrong behavior forcing exits on various services signals. In an attempt to address this, this commit backports my patch from 1.16 that removes this errant path. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* build: re-add patcherJason A. Donenfeld2020-08-182-4/+15
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* build: update to go 1.15Jason A. Donenfeld2020-08-181-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* locale: sync translations and rework enumerationJason A. Donenfeld2020-08-1819-757/+5107
| | | | | | | We now enumerate directories in locale/ and rename them if Crowdin is giving us a different language code. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunnel: use conn.BindSocketToInterface typeDavid Crawshaw2020-07-143-18/+23
| | | | | Signed-off-by: David Crawshaw <crawshaw@tailscale.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* winipcfg: add missing error case to dns domain settingJason A. Donenfeld2020-06-091-1/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* syntax: skip highlights if too many spansJason A. Donenfeld2020-06-091-5/+9
| | | | | | | | The rich text control is slow, so keep in plain text if there's too many. Suggested-by: Simon Rozman <simon@rozman.si> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: go fmtJason A. Donenfeld2020-06-082-4/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* version: bumpv0.1.1Jason A. Donenfeld2020-06-071-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* locale: sync translationsJason A. Donenfeld2020-06-079-1319/+7891
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunnel: unset dns search if none is specifiedJason A. Donenfeld2020-06-071-7/+9
| | | | | | | This doesn't get automatically cleared in the same way that nameservers do. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* mod: bumpJason A. Donenfeld2020-06-072-19/+19
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* build: bump to go 1.14.4Jason A. Donenfeld2020-06-071-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunnel: support setting dns domain suffixJason A. Donenfeld2020-06-052-0/+36
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* syntax: update to latest from wireguard-tools, for dns search domainsJason A. Donenfeld2020-06-053-11/+12
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* conf: add support for search domains inside dns lineJason A. Donenfeld2020-06-053-6/+10
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* conf: fix typo in error messageSimon Rozman2020-06-058-406/+404
| | | | | Reported-by: KolinPower@Crowdin Signed-off-by: Simon Rozman <simon@rozman.si>
* firewall: remove unused ExemptBuiltinAdministratorsJason A. Donenfeld2020-04-071-17/+0
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* updater: allow updating from the command lineJason A. Donenfeld2020-04-055-8/+101
| | | | | | | | | 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>
* syntax: insist on 256-bit keys, not 257-bit or 258-bitJason A. Donenfeld2020-04-041-2/+23
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* locales: add Italian translationVincenzo Reale2020-04-014-2/+1786
| | | | | | Signed-off-by: Vincenzo Reale <smart2128@baslug.org> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: Simon Rozman <simon@rozman.si>
* tunnel: calculate the actual route metric by summing interface and route metricPhilipp Czerner2020-03-291-2/+8
| | | | | | | | | | | | | | | | I had some issues setting up WireGuard behind another VPN. Curiously, it bound the physical interface instead of the other VPN, which was the default route. According to MSDN "the actual route metric used to compute the route preference is the summation of interface metric specified in the Metric member of the MIB_IPINTERFACE_ROW structure and the route metric offset specified in this member" (documentation for MIB_IPFORWARD_ROW2), but the code did not seem to consider this. After I changed the calculation, I got the expected behaviour. Signed-off-by: Philipp Czerner <suyjuris.gi@nicze.de> Link: https://docs.microsoft.com/en-us/windows/win32/api/netioapi/ns-netioapi-mib_ipforward_row2 [zx2c4: fixed up commit message, removed semicolon] Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* go: bumpJason A. Donenfeld2020-03-221-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* build: bump wireguard-toolsJason A. Donenfeld2020-03-201-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* mod: bumpJason A. Donenfeld2020-03-202-22/+21
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* version: bumpv0.1.0Jason A. Donenfeld2020-03-151-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: update copyright dateJason A. Donenfeld2020-03-152-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* l18n: add stub for cross platformJason A. Donenfeld2020-03-155-11/+50
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* l18n: add go 1.14 generated outputJason A. Donenfeld2020-03-151-5/+5
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* build: generalize generation mechanism to all submodulesJason A. Donenfeld2020-03-153-7/+7
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* l18n: add French translationSimon Rozman2020-03-152-242/+329
| | | | | Translated-by: Taja Gorjan <tgorjan@outlook.com> Signed-off-by: Simon Rozman <simon@rozman.si>
* l18n: add French translation stubSimon Rozman2020-03-154-2/+1706
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* l18n: change EnumerationSeparator for JapaneseEiji Tanioka2020-03-152-74/+74
| | | | | | | | | | | I grepped source tree and found that 'EnumerationSeparator' is used for multiple IP addresses separation. In these situation, comma is better than "、" in Japanese. ("、" is used for Japanese sentence separator, but separation by comma is more preferable to enumerate ASCII values.) Signed-off-by: Eiji Tanioka <tanioka404@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* l18n: disambiguate enumeration and unit concatenation separatorsSimon Rozman2020-03-156-301/+334
| | | | | | | | | In Japanese, "1分、5秒 前" is a little strange. It should be "1分 5秒 前". After consulting Slovenian linguist, I've learned the same applies to Slovenian as well. Reported-by: Eiji Tanioka <tanioka404@gmail.com> Signed-off-by: Simon Rozman <simon@rozman.si>
* l18n: fix Japanese translation and generate zgotext.goSimon Rozman2020-03-152-53/+106
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* l18n: add Japanese translation to messages.gotext.jsonEiji Tanioka2020-03-151-175/+175
| | | | | Signed-off-by: Eiji Tanioka <tanioka404@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* l18n: add Japanese translation to resources.rcEiji Tanioka2020-03-151-0/+7
| | | | | Signed-off-by: Eiji Tanioka <tanioka404@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* l18n: add Japanese translation stubSimon Rozman2020-03-153-2/+1549
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* l18n: add Slovenian translationSimon Rozman2020-03-154-2/+1843
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* l18n: add localization supportSimon Rozman2020-03-1524-247/+2669
| | | | | | | | | | | | | | | | | | | | | 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>
* manager: chdir into unelevated profile before execingJason A. Donenfeld2020-03-151-0/+2
| | | | | | | | Otherwise we wind up in \Windows\System32 in the import dialog's default directory. Reported-by: Kai Haberzettl <khaberz@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* mod: use x/text master branchJason A. Donenfeld2020-03-013-9/+10
| | | | | | We'll need some changes for the recent translation work. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>