aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorSimon Rozman <simon@rozman.si>2020-07-24 11:00:29 +0200
committerSimon Rozman <simon@rozman.si>2020-07-24 11:00:29 +0200
commitd8d57b958437f57520add7220ced57d73831ddca (patch)
tree73843aec4e8f64828a557795e7badf6ccd589070
parentmanager: adopt new Wintun API (diff)
downloadwireguard-windows-d8d57b958437f57520add7220ced57d73831ddca.tar.xz
wireguard-windows-d8d57b958437f57520add7220ced57d73831ddca.zip
main: remove WoW64 check
With new Wintun-API, the WoW64 processes may manipulate and use Wintun adapters as well. For testing purposes, the WoW64 check was removed. Once the WoW64 support is also tested on Windows 10 ARM64, return the WoW64 check for x86 binary. 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() {