mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2024-12-12 03:04:21 +00:00
19 lines
436 B
Go
19 lines
436 B
Go
|
// +build freebsd
|
||
|
|
||
|
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",
|
||
|
|
||
|
// TUN/TAP
|
||
|
MaximumIfMTU: 16384,
|
||
|
DefaultIfMTU: 16384,
|
||
|
DefaultIfName: "/dev/tap0",
|
||
|
DefaultIfTAPMode: true,
|
||
|
}
|
||
|
}
|