aboutsummaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAgeFilesLines
* winipcfg: add ConvertInterfaceIndexToLUIDHEADmasterKay Diam14 hours3-0/+21
| | | | | | | | | | | | | | | | | This change can be used to easily get an access to any interface by name, e.g. iface, err := net.InterfaceByName(name) if err ! nil { return err } luid, err := winipcfg.LUIDFromIndex(uint32(iface.Index)) if err != nil { return err } Signed-off-by: Kay Diam <kay.diam@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ringlogger: account for ERROR_ALREADY_EXISTS returnsJason A. Donenfeld2 days2-3/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* manager: use new DialConfig struct for pipeJason A. Donenfeld2 days1-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ringlogger: trim lines that are too wideJason A. Donenfeld2 days1-0/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* manager: use non-stuttering function nameJason A. Donenfeld2 days1-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* elevate: use ole32 functions from x/sysJason A. Donenfeld2 days4-109/+7
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* elevate: use ntdll functions from x/sysJason A. Donenfeld2 days4-81/+8
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* conf: merge {Pre,Post}{Up,Down} from uapiJason A. Donenfeld2 days1-0/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* mod: bumpJason A. Donenfeld2 days2-13/+13
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* version: bumpv0.3.8Jason A. Donenfeld8 days1-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* build: bump go treeJason A. Donenfeld8 days2-2/+2
| | | | | | | https://go-review.googlesource.com/c/go/+/297390 https://go-review.googlesource.com/c/go/+/297391 Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* embeddable-dll-service: give dacl example for config directoryJason A. Donenfeld10 days1-2/+10
| | | | | | It's probably best to encourage people start out in the right direction. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* version: bumpv0.3.7Jason A. Donenfeld11 days1-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* mod: bump for rio fallback fixJason A. Donenfeld11 days2-5/+6
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* version: bumpv0.3.6Jason A. Donenfeld11 days1-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* build: bump to wintun 0.10.2 and go toolchainJason A. Donenfeld11 days2-4/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* mod: bump for RIOJason A. Donenfeld11 days2-15/+12
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* build: bump wireguard-toolsJason A. Donenfeld11 days1-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* build: do not bootstrap goJason A. Donenfeld12 days2-16/+5
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunnel: fix sorting cascade in address configJason A. Donenfeld14 days1-4/+13
| | | | | Reported-by: Tbolp <tbolp@qq.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunnel: new bind object handlingJason A. Donenfeld14 days5-33/+31
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* build: port to arm64Jason A. Donenfeld2021-02-1817-712/+58
| | | | | | | | | | We build Go from modified-source with a bootstrap version, rather than shipping so many patches in this repo. This commit also removes the previous WOW hacks, and goes back to strictly forbidding WOW. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunnel: retry wintun creation a few times at early bootJason A. Donenfeld2021-02-161-1/+12
| | | | | | | | | This is to prevent races that we still don't understand with Windows Update when Windows Sandbox is enabled. Pretty gnarly. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunnel: simplify panic printingJason A. Donenfeld2021-02-161-12/+0
| | | | | | Now that we're intercepting println, we don't need this. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* version: bumpv0.3.5Jason A. Donenfeld2021-02-031-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* build: bump wintun to 0.10.1 and wg-go tooJason A. Donenfeld2021-02-034-6/+6
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: use CloseHandle rather than CloseJason A. Donenfeld2021-02-022-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* manager: use stricter handle inheritabilityJason A. Donenfeld2021-02-029-87/+530
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* winipcfg: move to undocumented DNS functionJason A. Donenfeld2021-02-028-194/+212
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* mod: bump to fix 32-bit alignmentJason A. Donenfeld2021-02-012-3/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* conf: simplify ip casting in dns resolutionJason A. Donenfeld2021-02-011-8/+5
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: move away from ioutilJason A. Donenfeld2021-02-016-20/+31
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* conf: don't sleep before failure in dns resolutionJason A. Donenfeld2021-02-011-2/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: bump copyright dateJason A. Donenfeld2021-02-01127-131/+131
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* version: stop using go version tags in repoJason A. Donenfeld2021-02-014-5/+33
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* build: use go 1.16rc1Jason A. Donenfeld2021-02-016-352/+10
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunnel: update to simpler logging interfaceJason A. Donenfeld2021-02-013-8/+5
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* manager: pipeline UAPI requestsJason A. Donenfeld2021-02-017-41/+117
| | | | | | This avoids the somewhat expensive pipe setup. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* version: adjust x/sys/windows type nameJason A. Donenfeld2021-01-253-4/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* winhttp: use errors.As for unwrappingJason A. Donenfeld2021-01-251-4/+5
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* updater,version: simplify code locationsJason A. Donenfeld2021-01-2511-154/+92
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* mod: bumpJason A. Donenfeld2021-01-244-30/+25
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: move certain win32 APIs to x/sys/windowsJason A. Donenfeld2021-01-2416-592/+168
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* embeddable-dll-service: add more robust example for .NET 5Jason A. Donenfeld2021-01-2114-110/+530
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* locales: sync with crowdinJason A. Donenfeld2021-01-0411-1431/+4019
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* embeddable-dll-service: download gcc again, since clang does not work with cgoJason A. Donenfeld2021-01-041-1/+19
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* embeddable-dll-service: fix code block typesJason A. Donenfeld2021-01-042-22/+26
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* build: update to go 1.16 beta1Jason A. Donenfeld2021-01-0417-2357/+147
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* conf: rename migration to migration_windowsJason A. Donenfeld2021-01-041-0/+0
| | | | | | It's almost useful to have this module not require windows. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* manager: do not raise error if manager service is already startingJason A. Donenfeld2020-12-171-0/+6
| | | | | | | | | | If the service is in StartPending state, then it means that we were *just* started by something else, so return success here, assuming the other program starting this does the right thing. This can happen when, e.g., the updater relaunches the manager service and then invokes wireguard.exe to raise the UI. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>