mirror of
https://github.com/netbirdio/netbird.git
synced 2025-02-07 22:10:12 +01:00
19 lines
410 B
Go
19 lines
410 B
Go
//go:build !android
|
|
|
|
package dns
|
|
|
|
import (
|
|
"github.com/netbirdio/netbird/client/configs"
|
|
"os"
|
|
"path/filepath"
|
|
)
|
|
|
|
var fileUncleanShutdownResolvConfLocation string
|
|
|
|
func init() {
|
|
fileUncleanShutdownResolvConfLocation = os.Getenv("NB_UNCLEAN_SHUTDOWN_RESOLV_FILE")
|
|
if fileUncleanShutdownResolvConfLocation == "" {
|
|
fileUncleanShutdownResolvConfLocation = filepath.Join(configs.StateDir, "resolv.conf")
|
|
}
|
|
}
|