mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00

Specifying the full path to the interface in OpenBSD would result in: panic: Interface name must be tun[0-9]* Therefore, DefaultIfName should be changed to tun0 in order to make yggdrasil work out of the box.
25 lines
565 B
Go
25 lines
565 B
Go
// +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
|
|
DefaultMulticastInterfaces: []string{
|
|
".*",
|
|
},
|
|
|
|
// TUN/TAP
|
|
MaximumIfMTU: 16384,
|
|
DefaultIfMTU: 16384,
|
|
DefaultIfName: "tun0",
|
|
}
|
|
}
|