diff options
author | Simon Rozman <simon@rozman.si> | 2020-07-24 11:00:29 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-11-10 17:35:00 +0100 |
commit | e9b2f4385c8ccce73f2649da6dfca65b410508c5 (patch) | |
tree | dcf7b6549c1652454cb9f0111796b46597325b9a | |
parent | mod: bump (diff) | |
download | wireguard-windows-e9b2f4385c8ccce73f2649da6dfca65b410508c5.tar.xz wireguard-windows-e9b2f4385c8ccce73f2649da6dfca65b410508c5.zip |
main: remove WoW64 check
With new Wintun-API, the WoW64 processes may manipulate and use Wintun
adapters as well.
Add this back once Go can produce ARM64 binaries.
Signed-off-by: Simon Rozman <simon@rozman.si>
-rw-r--r-- | main.go | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -58,17 +58,6 @@ func usage() { os.Exit(1) } -func checkForWow64() { - var b bool - err := windows.IsWow64Process(windows.CurrentProcess(), &b) - if err != nil { - fatalf("Unable to determine whether the process is running under WOW64: %v", err) - } - if b { - fatalf("You must use the 64-bit version of WireGuard on this computer.") - } -} - func checkForAdminGroup() { // This is not a security check, but rather a user-confusion one. var processToken windows.Token @@ -111,8 +100,6 @@ func pipeFromHandleArgument(handleStr string) (*os.File, error) { } func main() { - checkForWow64() - if len(os.Args) <= 1 { checkForAdminGroup() if ui.RaiseUI() { |