mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-16 07:16:38 +00:00
Some features can only be manipulated via environment variables. With this PR, environment variables can be managed from Android.
15 lines
189 B
Go
15 lines
189 B
Go
package peer
|
|
|
|
import (
|
|
"os"
|
|
"strings"
|
|
)
|
|
|
|
const (
|
|
EnvKeyNBForceRelay = "NB_FORCE_RELAY"
|
|
)
|
|
|
|
func isForceRelayed() bool {
|
|
return strings.EqualFold(os.Getenv(EnvKeyNBForceRelay), "true")
|
|
}
|