5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-12-23 18:05:39 +00:00
yggdrasil-go/src/config/defaults_darwin.go

28 lines
693 B
Go
Raw Normal View History

2021-09-23 09:34:58 +00:00
//go:build darwin
// +build darwin
2023-04-06 20:45:49 +00:00
package config
// Sane defaults for the macOS/Darwin 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
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},
},
// TUN
MaximumIfMTU: 65535,
DefaultIfMTU: 65535,
DefaultIfName: "auto",
}
}