2021-09-23 09:34:58 +00:00
|
|
|
//go:build darwin
|
2018-07-07 11:08:52 +00:00
|
|
|
// +build darwin
|
|
|
|
|
2023-04-06 20:45:49 +00:00
|
|
|
package config
|
2018-07-07 11:08:52 +00:00
|
|
|
|
|
|
|
// Sane defaults for the macOS/Darwin platform. The "default" options may be
|
|
|
|
// may be replaced by the running configuration.
|
2022-09-24 13:09:08 +00:00
|
|
|
func getDefaults() platformDefaultParameters {
|
2018-07-07 11:08:52 +00:00
|
|
|
return platformDefaultParameters{
|
2018-07-08 00:37:36 +00:00
|
|
|
// Admin
|
2018-12-10 00:31:31 +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
|
2021-06-27 08:15:41 +00:00
|
|
|
DefaultMulticastInterfaces: []MulticastInterfaceConfig{
|
2021-06-27 22:24:46 +00:00
|
|
|
{Regex: "en.*", Beacon: true, Listen: true},
|
|
|
|
{Regex: "bridge.*", Beacon: true, Listen: true},
|
2019-06-11 09:18:59 +00:00
|
|
|
},
|
|
|
|
|
2022-09-24 13:41:47 +00:00
|
|
|
// TUN
|
2019-11-22 16:43:50 +00:00
|
|
|
MaximumIfMTU: 65535,
|
|
|
|
DefaultIfMTU: 65535,
|
|
|
|
DefaultIfName: "auto",
|
2018-07-07 11:08:52 +00:00
|
|
|
}
|
|
|
|
}
|