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