mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-08-24 16:05:07 +03:00
33 lines
793 B
Go
33 lines
793 B
Go
//go:build linux
|
|
// +build linux
|
|
|
|
package config
|
|
|
|
// Sane defaults for the Linux 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
|
|
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: 65535,
|
|
DefaultIfMTU: 65535,
|
|
DefaultIfName: "auto",
|
|
}
|
|
}
|