aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorSimon Rozman <simon@rozman.si>2020-07-24 11:00:29 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2020-11-10 17:35:00 +0100
commite9b2f4385c8ccce73f2649da6dfca65b410508c5 (patch)
treedcf7b6549c1652454cb9f0111796b46597325b9a
parentmod: bump (diff)
downloadwireguard-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.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/main.go b/main.go
index 79dfcdfc..0d5a4f21 100644
--- a/main.go
+++ b/main.go
@@ -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() {