2024-10-02 18:24:22 +02:00
|
|
|
package device
|
2024-07-15 14:45:18 +02:00
|
|
|
|
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
|
|
|
|
"golang.zx2c4.com/wireguard/device"
|
|
|
|
)
|
|
|
|
|
|
|
|
func wgLogLevel() int {
|
|
|
|
if os.Getenv("NB_WG_DEBUG") == "true" {
|
|
|
|
return device.LogLevelVerbose
|
|
|
|
} else {
|
|
|
|
return device.LogLevelSilent
|
|
|
|
}
|
|
|
|
}
|