mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-08-25 16:35:07 +03:00
33 lines
811 B
Go
33 lines
811 B
Go
//go:build freebsd
|
|
// +build freebsd
|
|
|
|
package config
|
|
|
|
// Sane defaults for the BSD platforms. 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: "/usr/local/etc/yggdrasil.conf",
|
|
|
|
// Multicast interfaces
|
|
DefaultMulticastInterfaces: []MulticastInterfaceConfig{
|
|
{
|
|
Regex: ".*",
|
|
Beacon: true,
|
|
Listen: true,
|
|
Port: 0, // 0 means random port
|
|
Priority: 0, // 0 is highest priority
|
|
Password: "", // empty means no password required
|
|
},
|
|
},
|
|
|
|
// TUN
|
|
MaximumIfMTU: 32767,
|
|
DefaultIfMTU: 32767,
|
|
DefaultIfName: "/dev/tun0",
|
|
}
|
|
}
|