Skip to content

Commit 0ec183c

Browse files
committed
Merge remote-tracking branch 'origin/master' into update-endpoint-ip
2 parents 9957796 + 6ed37f3 commit 0ec183c

File tree

152 files changed

+224
-759
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

152 files changed

+224
-759
lines changed

COPYING

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (C) 2018-2021 WireGuard LLC. All Rights Reserved.
1+
Copyright (C) 2018-2022 WireGuard LLC. All Rights Reserved.
22

33
Permission is hereby granted, free of charge, to any person obtaining a
44
copy of this software and associated documentation files (the "Software"),

Makefile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
GOFLAGS := -tags load_wgnt_from_rsrc -ldflags="-H windowsgui -s -w" -v -trimpath
1+
GOFLAGS := -tags load_wgnt_from_rsrc -ldflags="-H windowsgui -s -w" -trimpath -buildinfo=false -buildvcs=false -v
22
export GOOS := windows
33
export PATH := $(CURDIR)/.deps/go/bin:$(PATH)
44

@@ -25,15 +25,14 @@ define download =
2525
if ! mv $$@.unverified $$@; then rm -f $$@.unverified; exit 1; fi
2626
endef
2727

28-
$(eval $(call download,go.tar.gz,https://go.dev/dl/go1.17.4.linux-amd64.tar.gz,adab2483f644e2f8a10ae93122f0018cef525ca48d0b8764dae87cb5f4fd4206))
28+
$(eval $(call download,go.tar.gz,https://go.dev/dl/go1.18beta1.linux-amd64.tar.gz,128f72c5c22640085e4187cd1b540c587cf8fb280f941519bd2d1ae9fdab4f37))
2929
$(eval $(call download,wireguard-nt.zip,https://download.wireguard.com/wireguard-nt/wireguard-nt-0.10.1.zip,772c0b1463d8d2212716f43f06f4594d880dea4f735165bd68e388fc41b81605))
3030

31-
.deps/go/prepared: .distfiles/go.tar.gz $(wildcard go-patches/*.patch)
31+
.deps/go/prepared: .distfiles/go.tar.gz
3232
mkdir -p .deps
3333
rm -rf .deps/go
3434
bsdtar -C .deps -xf .distfiles/go.tar.gz
3535
chmod -R +w .deps/go
36-
cat $(filter %.patch,$^) | patch -f -N -r- -p1 -d .deps/go
3736
touch $@
3837

3938
.deps/wireguard-nt/prepared: .distfiles/wireguard-nt.zip
@@ -72,7 +71,7 @@ remaster: .deps/go/prepared
7271
rm -f go.sum go.mod
7372
cp go.mod.master go.mod
7473
go get -d
75-
sed -i $(shell curl -L https://go.dev/dl/?mode=json | jq -r '(".windows-amd64.zip",".linux-amd64.tar.gz") as $$suffix | .[0].files[] | select(.filename|endswith($$suffix)) | ("-e", "s/go[0-9][^ ]*\\\($$suffix)\\([ ,]\\)[a-f0-9]\\+/\(.filename)\\1\(.sha256)/") | @sh') Makefile build.bat
74+
sed -i $(shell curl -L 'https://go.dev/dl/?mode=json&include=all' | jq -r '(".windows-amd64.zip",".linux-amd64.tar.gz") as $$suffix | .[-1].files[] | select(.filename|endswith($$suffix)) | ("-e", "s/go[0-9][^ ]*\\\($$suffix)\\([ ,]\\)[a-f0-9]\\+/\(.filename)\\1\(.sha256)/") | @sh') Makefile build.bat
7675

7776
fmt: export GOARCH := amd64
7877
fmt: .deps/go/prepared

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ In addition to this [`README.md`](README.md), the following documents are also a
2424
This repository is MIT-licensed.
2525

2626
```text
27-
Copyright (C) 2018-2021 WireGuard LLC. All Rights Reserved.
27+
Copyright (C) 2018-2022 WireGuard LLC. All Rights Reserved.
2828
2929
Permission is hereby granted, free of charge, to any person obtaining a
3030
copy of this software and associated documentation files (the "Software"),

build.bat

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@echo off
22
rem SPDX-License-Identifier: MIT
3-
rem Copyright (C) 2019-2021 WireGuard LLC. All Rights Reserved.
3+
rem Copyright (C) 2019-2022 WireGuard LLC. All Rights Reserved.
44

55
setlocal enabledelayedexpansion
66
set BUILDDIR=%~dp0
@@ -13,19 +13,15 @@ if exist .deps\prepared goto :render
1313
rmdir /s /q .deps 2> NUL
1414
mkdir .deps || goto :error
1515
cd .deps || goto :error
16-
call :download go.zip https://go.dev/dl/go1.17.4.windows-amd64.zip 903cffeb7c6ab7490b9101086a2b978076bd9356e56369404b9c45dff866da77 || goto :error
16+
call :download go.zip https://go.dev/dl/go1.18beta1.windows-amd64.zip 3a43ab4ec28eee6b10fd412a055724d962227f1c27a78960d6d229d741f8353d || goto :error
1717
rem Mirror of https://github.com/mstorsjo/llvm-mingw/releases/download/20201020/llvm-mingw-20201020-msvcrt-x86_64.zip
1818
call :download llvm-mingw-msvcrt.zip https://download.wireguard.com/windows-toolchain/distfiles/llvm-mingw-20201020-msvcrt-x86_64.zip 2e46593245090df96d15e360e092f0b62b97e93866e0162dca7f93b16722b844 || goto :error
1919
rem Mirror of https://imagemagick.org/download/binaries/ImageMagick-7.0.8-42-portable-Q16-x64.zip
2020
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
2121
rem Mirror of https://sourceforge.net/projects/ezwinports/files/make-4.2.1-without-guile-w32-bin.zip
2222
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
2323
call :download wireguard-tools.zip https://git.zx2c4.com/wireguard-tools/snapshot/wireguard-tools-1ee37b8e4833a25efe6f1fc0d5bdcb476148f4ba.zip ed0739bc3e5a7021a59d4cc4fc63e5fb60a0cb8628d30515a747bfbdcf1fdb0a "--exclude wg-quick --strip-components 1" || goto :error
24-
rem Mirror of https://sourceforge.net/projects/gnuwin32/files/patch/2.5.9-7/patch-2.5.9-7-bin.zip with fixed manifest
25-
call :download patch.zip https://download.wireguard.com/windows-toolchain/distfiles/patch-2.5.9-7-bin-fixed-manifest.zip 25977006ca9713f2662a5d0a2ed3a5a138225b8be3757035bd7da9dcf985d0a1 "--strip-components 1 bin" || goto :error
2624
call :download wireguard-nt.zip https://download.wireguard.com/wireguard-nt/wireguard-nt-0.10.1.zip 772c0b1463d8d2212716f43f06f4594d880dea4f735165bd68e388fc41b81605 || goto :error
27-
echo [+] Patching go
28-
for %%a in ("..\go-patches\*.patch") do .\patch.exe -f -N -r- -d go -p1 --binary < "%%a" || goto :error
2925
copy /y NUL prepared > NUL || goto :error
3026
cd .. || goto :error
3127

@@ -77,7 +73,7 @@ if exist .deps\prepared goto :render
7773
echo [+] Assembling resources %1
7874
%~2-w64-mingw32-windres -I ".deps\wireguard-nt\bin\%~1" -DWIREGUARD_VERSION_ARRAY=%WIREGUARD_VERSION_ARRAY% -DWIREGUARD_VERSION_STR=%WIREGUARD_VERSION% -i resources.rc -o "resources_%~3.syso" -O coff -c 65001 || exit /b %errorlevel%
7975
echo [+] Building program %1
80-
go build -tags load_wgnt_from_rsrc -ldflags="-H windowsgui -s -w" -trimpath -v -o "%~1\wireguard.exe" || exit /b 1
76+
go build -tags load_wgnt_from_rsrc -ldflags="-H windowsgui -s -w" -trimpath -buildinfo=false -buildvcs=false -v -o "%~1\wireguard.exe" || exit /b 1
8177
if not exist "%~1\wg.exe" (
8278
echo [+] Building command line tools %1
8379
del .deps\src\*.exe .deps\src\*.o .deps\src\wincompat\*.o .deps\src\wincompat\*.lib 2> NUL

conf/admin_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* SPDX-License-Identifier: MIT
22
*
3-
* Copyright (C) 2019-2021 WireGuard LLC. All Rights Reserved.
3+
* Copyright (C) 2019-2022 WireGuard LLC. All Rights Reserved.
44
*/
55

66
package conf

conf/config.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* SPDX-License-Identifier: MIT
22
*
3-
* Copyright (C) 2019-2021 WireGuard LLC. All Rights Reserved.
3+
* Copyright (C) 2019-2022 WireGuard LLC. All Rights Reserved.
44
*/
55

66
package conf
@@ -10,11 +10,10 @@ import (
1010
"crypto/subtle"
1111
"encoding/base64"
1212
"fmt"
13+
"net/netip"
1314
"strings"
1415
"time"
1516

16-
"golang.zx2c4.com/go118/netip"
17-
1817
"golang.org/x/crypto/curve25519"
1918

2019
"golang.zx2c4.com/wireguard/windows/l18n"

conf/dnsresolver_windows.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
/* SPDX-License-Identifier: MIT
22
*
3-
* Copyright (C) 2019-2021 WireGuard LLC. All Rights Reserved.
3+
* Copyright (C) 2019-2022 WireGuard LLC. All Rights Reserved.
44
*/
55

66
package conf
77

88
import (
99
"log"
10+
"net/netip"
1011
"time"
1112
"unsafe"
1213

13-
"golang.zx2c4.com/go118/netip"
1414
"golang.zx2c4.com/wireguard/windows/tunnel/winipcfg"
1515

1616
"golang.org/x/sys/windows"

conf/dpapi/dpapi_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* SPDX-License-Identifier: MIT
22
*
3-
* Copyright (C) 2019-2021 WireGuard LLC. All Rights Reserved.
3+
* Copyright (C) 2019-2022 WireGuard LLC. All Rights Reserved.
44
*/
55

66
package dpapi

conf/dpapi/dpapi_windows_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* SPDX-License-Identifier: MIT
22
*
3-
* Copyright (C) 2019-2021 WireGuard LLC. All Rights Reserved.
3+
* Copyright (C) 2019-2022 WireGuard LLC. All Rights Reserved.
44
*/
55

66
package dpapi

conf/filewriter_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* SPDX-License-Identifier: MIT
22
*
3-
* Copyright (C) 2019-2021 WireGuard LLC. All Rights Reserved.
3+
* Copyright (C) 2019-2022 WireGuard LLC. All Rights Reserved.
44
*/
55

66
package conf

0 commit comments

Comments
 (0)