summaryrefslogtreecommitdiffstats
path: root/main_windows.go (follow)
Commit message (Collapse)AuthorAgeFilesLines
* conn: make binds replacableJason A. Donenfeld2021-02-231-1/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* device: return error from Up() and Down()Jason A. Donenfeld2021-02-101-1/+5
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: bump copyrightJason A. Donenfeld2021-01-281-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* device: remove version stringJason A. Donenfeld2021-01-281-1/+1
| | | | | | This is what modules are for, and Go binaries can introspect. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* device: combine debug and info log levels into 'verbose'Jason A. Donenfeld2021-01-261-6/+5
| | | | | | | | | | | | There are very few cases, if any, in which a user only wants one of these levels, so combine it into a single level. While we're at it, reduce indirection on the loggers by using an empty function rather than a nil function pointer. It's not like we have retpolines anyway, and we were always calling through a function with a branch prior, so this seems like a net gain. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* device: change logging interface to use functionsJosh Bleecher Snyder2021-01-261-7/+7
| | | | | | | | | | | | | | | | | | | | | This commit overhauls wireguard-go's logging. The primary, motivating change is to use a function instead of a *log.Logger as the basic unit of logging. Using functions provides a lot more flexibility for people to bring their own logging system. It also introduces logging helper methods on Device. These reduce line noise at the call site. They also allow for log functions to be nil; when nil, instead of generating a log line and throwing it away, we don't bother generating it at all. This spares allocation and pointless work. This is a breaking change, although the fix required of clients is fairly straightforward. Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
* global: update header comments and modulesJason A. Donenfeld2020-05-021-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tun: match windows CreateTUN signature to the Linux variantAvery Pennarun2019-10-171-1/+1
| | | | | Signed-off-by: Avery Pennarun <apenwarr@gmail.com> [zx2c4: fix default value]
* global: regroup all importsJason A. Donenfeld2019-05-141-2/+3
|
* main: revise warningsJason A. Donenfeld2019-04-191-0/+2
|
* main_windows: use proper version constantJason A. Donenfeld2019-04-091-1/+1
|
* global: begin modularizationJason A. Donenfeld2019-03-031-5/+7
|
* Change package pathJason A. Donenfeld2019-02-181-1/+1
|
* main_windows: Get iface name from argumentJason A. Donenfeld2019-02-071-2/+1
|
* main_windows: Catch more exit eventsJason A. Donenfeld2019-02-071-0/+3
|
* Fix up errors and pathsJason A. Donenfeld2019-02-051-3/+4
|
* Import windows scafoldingJason A. Donenfeld2019-02-051-0/+86