mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2025-03-29 05:33:48 +00:00
29 lines
734 B
Go
29 lines
734 B
Go
//go:build darwin
|
|
// +build darwin
|
|
|
|
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: "tcp://localhost:9001",
|
|
|
|
// Configuration (used for yggdrasilctl)
|
|
DefaultConfigFile: "/etc/yggdrasil.conf",
|
|
|
|
// Multicast interfaces
|
|
DefaultMulticastInterfaces: []MulticastInterfaceConfig{
|
|
{Regex: "en.*", Beacon: true, Listen: true},
|
|
{Regex: "bridge.*", Beacon: true, Listen: true},
|
|
{Regex: "awdl0", Beacon: false, Listen: false},
|
|
},
|
|
|
|
// TUN
|
|
MaximumIfMTU: 65535,
|
|
DefaultIfMTU: 65535,
|
|
DefaultIfName: "auto",
|
|
}
|
|
}
|