mirror of
https://git.zx2c4.com/wireguard-go
synced 2024-11-15 01:05:15 +01:00
Ugly hack to suppress warning on backgrounded process
This commit is contained in:
parent
09235d48d8
commit
a62c770a99
4
main.go
4
main.go
@ -30,6 +30,10 @@ func printUsage() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func warning() {
|
func warning() {
|
||||||
|
if os.Getenv(ENV_WG_PROCESS_FOREGROUND) == "1" {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
shouldQuit := false
|
shouldQuit := false
|
||||||
|
|
||||||
fmt.Fprintln(os.Stderr, "WARNING WARNING WARNING WARNING WARNING WARNING WARNING")
|
fmt.Fprintln(os.Stderr, "WARNING WARNING WARNING WARNING WARNING WARNING WARNING")
|
||||||
|
Loading…
Reference in New Issue
Block a user