2018-07-07 14:08:52 +03:00
|
|
|
// +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{
|
2018-07-08 03:37:36 +03:00
|
|
|
// Admin
|
2018-12-10 03:37:32 +03:00
|
|
|
DefaultAdminListen: "unix:///var/run/yggdrasil.sock",
|
2018-07-07 14:08:52 +03:00
|
|
|
|
2018-12-10 13:20:59 +03:00
|
|
|
// Configuration (used for yggdrasilctl)
|
|
|
|
DefaultConfigFile: "/etc/yggdrasil.conf",
|
|
|
|
|
2019-06-11 12:18:59 +03:00
|
|
|
// Multicast interfaces
|
|
|
|
DefaultMulticastInterfaces: []string{
|
|
|
|
"en*",
|
|
|
|
"eth*",
|
|
|
|
"wlan*",
|
|
|
|
"br*",
|
|
|
|
},
|
|
|
|
|
2018-07-08 03:37:36 +03:00
|
|
|
// TUN/TAP
|
|
|
|
MaximumIfMTU: 65535,
|
|
|
|
DefaultIfMTU: 65535,
|
|
|
|
DefaultIfName: "auto",
|
|
|
|
DefaultIfTAPMode: false,
|
2018-07-07 14:08:52 +03:00
|
|
|
}
|
|
|
|
}
|