mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-20 21:33:57 -07:00
.
This commit is contained in:
parent
3b3e6d2bfc
commit
4303c43db7
13 changed files with 560 additions and 296 deletions
|
@ -95,14 +95,10 @@ func (lc *LocalConfig) Read(p string, saveDefaultsIfNotExist bool) error {
|
|||
lc.Settings.LogSizeMax = 128
|
||||
lc.Settings.MuiltipathMode = 0
|
||||
switch runtime.GOOS {
|
||||
case "darwin":
|
||||
lc.Settings.InterfacePrefixBlacklist = []string{"utun", "tun", "tap", "feth", "lo", "zt"}
|
||||
case "linux":
|
||||
lc.Settings.InterfacePrefixBlacklist = []string{"tun", "tap", "lo", "zt"}
|
||||
case "freebsd", "openbsd", "netbsd", "illumos", "solaris", "dragonfly":
|
||||
lc.Settings.InterfacePrefixBlacklist = []string{"tun", "tap", "zt"}
|
||||
case "android":
|
||||
lc.Settings.InterfacePrefixBlacklist = []string{"tun", "tap"}
|
||||
case "windows":
|
||||
lc.Settings.InterfacePrefixBlacklist = []string{"loopback"}
|
||||
default:
|
||||
lc.Settings.InterfacePrefixBlacklist = []string{"lo"}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue