summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-05-02 02:14:53 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2020-05-02 02:20:47 -0600
commitda9d300cf8b50d1cf629b7fa4423d122a74a6871 (patch)
treeab86f60a6d992fc9f385a36d4de8fcd4ef9c551e
parent59c99297141fe247e9b3fa895b3f779d9ac6eadf (diff)
main: now that we're upstreamed, relax Linux warning
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--README.md2
-rw-r--r--main.go22
2 files changed, 11 insertions, 13 deletions
diff --git a/README.md b/README.md
index 3c8507e..ea3d7cb 100644
--- a/README.md
+++ b/README.md
@@ -26,7 +26,7 @@ To run with more logging you may set the environment variable `LOG_LEVEL=debug`.
### Linux
-This will run on Linux; however **YOU SHOULD NOT RUN THIS ON LINUX**. Instead use the kernel module; see the [installation page](https://www.wireguard.com/install/) for instructions.
+This will run on Linux; however you should instead use the kernel module, which is faster and better integrated into the OS. See the [installation page](https://www.wireguard.com/install/) for instructions.
### macOS
diff --git a/main.go b/main.go
index f9d9584..75c922d 100644
--- a/main.go
+++ b/main.go
@@ -41,18 +41,16 @@ func warning() {
return
}
- fmt.Fprintln(os.Stderr, "WARNING WARNING WARNING WARNING WARNING WARNING WARNING")
- fmt.Fprintln(os.Stderr, "W G")
- fmt.Fprintln(os.Stderr, "W You are running this software on a Linux kernel, G")
- fmt.Fprintln(os.Stderr, "W which is probably unnecessary and misguided. This G")
- fmt.Fprintln(os.Stderr, "W is because the Linux kernel has built-in first G")
- fmt.Fprintln(os.Stderr, "W class support for WireGuard, and this support is G")
- fmt.Fprintln(os.Stderr, "W much more refined than this slower userspace G")
- fmt.Fprintln(os.Stderr, "W implementation. For more information on G")
- fmt.Fprintln(os.Stderr, "W installing the kernel module, please visit: G")
- fmt.Fprintln(os.Stderr, "W https://www.wireguard.com/install G")
- fmt.Fprintln(os.Stderr, "W G")
- fmt.Fprintln(os.Stderr, "WARNING WARNING WARNING WARNING WARNING WARNING WARNING")
+ fmt.Fprintln(os.Stderr, "┌───────────────────────────────────────────────────┐")
+ fmt.Fprintln(os.Stderr, "│ │")
+ fmt.Fprintln(os.Stderr, "│ Running this software on Linux is unnecessary, │")
+ fmt.Fprintln(os.Stderr, "│ because the Linux kernel has built-in first │")
+ fmt.Fprintln(os.Stderr, "│ class support for WireGuard, which will be │")
+ fmt.Fprintln(os.Stderr, "│ faster, slicker, and better integrated. For │")
+ fmt.Fprintln(os.Stderr, "│ information on installing the kernel module, │")
+ fmt.Fprintln(os.Stderr, "│ please visit: <https://wireguard.com/install>. │")
+ fmt.Fprintln(os.Stderr, "│ │")
+ fmt.Fprintln(os.Stderr, "└───────────────────────────────────────────────────┘")
}
func main() {