diff options
| author | 2026-03-24 02:42:10 +0100 | |
|---|---|---|
| committer | 2026-03-24 03:24:55 +0100 | |
| commit | 0f52c8d37528e2a768a2f63472656bc93bc4546f (patch) | |
| tree | dfa91a24f94eebac1b0897d5e3ead167fb91bbf2 | |
| parent | fetcher: account for potentially mangled title bar text (diff) | |
| download | wireguard-windows-master.tar.xz wireguard-windows-master.zip | |
This also involves bumping wireguard-tools so that wg.exe is up to date.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
| -rw-r--r-- | build.bat | 2 | ||||
| -rw-r--r-- | driver/configuration_windows.go | 8 |
2 files changed, 8 insertions, 2 deletions
@@ -20,7 +20,7 @@ if exist .deps\prepared goto :render call :download imagemagick.zip https://download.wireguard.com/windows-toolchain/distfiles/ImageMagick-7.0.8-42-portable-Q16-x64.zip 584e069f56456ce7dde40220948ff9568ac810688c892c5dfb7f6db902aa05aa "convert.exe colors.xml delegates.xml" || goto :error rem Mirror of https://sourceforge.net/projects/ezwinports/files/make-4.2.1-without-guile-w32-bin.zip call :download make.zip https://download.wireguard.com/windows-toolchain/distfiles/make-4.2.1-without-guile-w32-bin.zip 30641be9602712be76212b99df7209f4f8f518ba764cf564262bc9d6e4047cc7 "--strip-components 1 bin" || goto :error - call :download wireguard-tools.zip https://git.zx2c4.com/wireguard-tools/snapshot/wireguard-tools-997ffa0c89b4a6a3998325ceeb55588bb0cf8017.zip fb69747d1ea09d44ad686f5bd8df4d2d2a698822c06c6921058ae7dd3390fb7e "--exclude wg-quick --strip-components 1" || goto :error + call :download wireguard-tools.zip https://git.zx2c4.com/wireguard-tools/snapshot/wireguard-tools-06a99cce2c9998f53eb30d2f258a9e5ff286445b.zip b7a73e027cee3127f3cccba8ad3a08ea61ccd42d3ea5c28c548a8e0ec9e10cf6 "--exclude wg-quick --strip-components 1" || goto :error call :download wireguard-nt.zip https://download.wireguard.com/wireguard-nt/wireguard-nt-0.10.1.zip 772c0b1463d8d2212716f43f06f4594d880dea4f735165bd68e388fc41b81605 || goto :error copy /y NUL prepared > NUL || goto :error cd .. || goto :error diff --git a/driver/configuration_windows.go b/driver/configuration_windows.go index d3fa6a14..e8cf0955 100644 --- a/driver/configuration_windows.go +++ b/driver/configuration_windows.go @@ -20,11 +20,17 @@ const ( AdapterStateUp AdapterState = 1 ) +type AllowedIpFlag uint32 + +const ( + AllowedIpRemove AllowedIpFlag = 1 << 0 +) + type AllowedIP struct { Address [16]byte AddressFamily winipcfg.AddressFamily Cidr uint8 - _ [4]byte + Flags AllowedIpFlag } type PeerFlag uint32 |
