aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/main.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-02-08 16:16:15 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2021-02-18 22:17:01 +0100
commit4bacf4a37c8ed4091c3201835a0e3db919a6464a (patch)
treeb91f462e47bd4f967ac505571d33ae4b4ba960aa /main.go
parenttunnel: retry wintun creation a few times at early boot (diff)
downloadwireguard-windows-4bacf4a37c8ed4091c3201835a0e3db919a6464a.tar.xz
wireguard-windows-4bacf4a37c8ed4091c3201835a0e3db919a6464a.zip
build: port to arm64
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>
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/main.go b/main.go
index 84c8ebe0..5862d4e3 100644
--- a/main.go
+++ b/main.go
@@ -11,7 +11,6 @@ import (
"fmt"
"log"
"os"
- "runtime"
"strconv"
"strings"
"time"
@@ -68,10 +67,6 @@ func checkForWow64() {
var processMachine, nativeMachine uint16
err := windows.IsWow64Process2(windows.CurrentProcess(), &processMachine, &nativeMachine)
if err == nil {
- if nativeMachine == pe.IMAGE_FILE_MACHINE_ARM64 && runtime.GOARCH == "arm" {
- //TODO: remove this exception when Go supports arm64
- return false, nil
- }
return processMachine != pe.IMAGE_FILE_MACHINE_UNKNOWN, nil
}
if !errors.Is(err, windows.ERROR_PROC_NOT_FOUND) {