mirror of
https://github.com/yggdrasil-network/yggdrasil-go
synced 2024-11-10 15:30:34 +03:00
30 lines
634 B
Go
30 lines
634 B
Go
// +build linux
|
|
|
|
package defaults
|
|
|
|
// Sane defaults for the Linux platform. The "default" options may be
|
|
// may be replaced by the running configuration.
|
|
func GetDefaults() platformDefaultParameters {
|
|
return platformDefaultParameters{
|
|
// Admin
|
|
DefaultAdminListen: "unix:///var/run/yggdrasil.sock",
|
|
|
|
// Configuration (used for yggdrasilctl)
|
|
DefaultConfigFile: "/etc/yggdrasil.conf",
|
|
|
|
// Multicast interfaces
|
|
DefaultMulticastInterfaces: []string{
|
|
"en*",
|
|
"eth*",
|
|
"wlan*",
|
|
"br*",
|
|
},
|
|
|
|
// TUN/TAP
|
|
MaximumIfMTU: 65535,
|
|
DefaultIfMTU: 65535,
|
|
DefaultIfName: "auto",
|
|
DefaultIfTAPMode: false,
|
|
}
|
|
}
|