5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-12-25 04:55:44 +00:00
yggdrasil-go/src/defaults/defaults_openbsd.go

27 lines
635 B
Go
Raw Normal View History

2021-09-23 09:34:58 +00:00
//go:build openbsd
2018-07-07 11:18:03 +00:00
// +build openbsd
package defaults
// 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: "/etc/yggdrasil.conf",
// Multicast interfaces
2021-06-27 08:15:41 +00:00
DefaultMulticastInterfaces: []MulticastInterfaceConfig{
2021-06-27 22:24:46 +00:00
{Regex: ".*", Beacon: true, Listen: true},
},
// TUN
MaximumIfMTU: 16384,
DefaultIfMTU: 16384,
DefaultIfName: "tun0",
}
}