mirror of
https://abf.rosa.ru/djam/nebula.git
synced 2025-02-23 23:32:54 +00:00
41 lines
1.1 KiB
Diff
41 lines
1.1 KiB
Diff
From ff4922007e72abafd6f76f775548b2e5fca85a44 Mon Sep 17 00:00:00 2001
|
|
From: Mikhail Novosyolov <mikhailnov@dumalogiya.ru>
|
|
Date: Sun, 30 Jan 2022 22:03:55 +0300
|
|
Subject: [PATCH] HACK: Do not require Windows-specific modules
|
|
|
|
`go mod vendor` fails to work with them for some reasons,
|
|
just drop them from code that we will not build on Linux.
|
|
---
|
|
overlay/tun_wintun_windows.go | 1 -
|
|
wintun/tun.go | 3 ---
|
|
2 files changed, 4 deletions(-)
|
|
|
|
diff --git a/overlay/tun_wintun_windows.go b/overlay/tun_wintun_windows.go
|
|
index f90ea8a..306f4cd 100644
|
|
--- a/overlay/tun_wintun_windows.go
|
|
+++ b/overlay/tun_wintun_windows.go
|
|
@@ -12,7 +12,6 @@ import (
|
|
"github.com/slackhq/nebula/iputil"
|
|
"github.com/slackhq/nebula/wintun"
|
|
"golang.org/x/sys/windows"
|
|
- "golang.zx2c4.com/wireguard/windows/tunnel/winipcfg"
|
|
)
|
|
|
|
const tunGUIDLabel = "Fixed Nebula Windows GUID v1"
|
|
diff --git a/wintun/tun.go b/wintun/tun.go
|
|
index a2dfe5e..94077fe 100644
|
|
--- a/wintun/tun.go
|
|
+++ b/wintun/tun.go
|
|
@@ -20,9 +20,6 @@ import (
|
|
"time"
|
|
_ "unsafe"
|
|
|
|
- "golang.org/x/sys/windows"
|
|
-
|
|
- "golang.zx2c4.com/wintun"
|
|
)
|
|
|
|
const (
|
|
--
|
|
2.31.1
|
|
|