From a62c770a99e830f220314d1bc779e8818d4ecc7f Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 14 May 2018 15:58:40 +0200 Subject: [PATCH] Ugly hack to suppress warning on backgrounded process --- main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.go b/main.go index 6e876df..09ba39e 100644 --- a/main.go +++ b/main.go @@ -30,6 +30,10 @@ func printUsage() { } func warning() { + if os.Getenv(ENV_WG_PROCESS_FOREGROUND) == "1" { + return + } + shouldQuit := false fmt.Fprintln(os.Stderr, "WARNING WARNING WARNING WARNING WARNING WARNING WARNING")