4
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2025-06-17 12:56:07 +00:00

Centralise platform defaults into the 'defaults' package

This commit is contained in:
Neil Alexander
2018-07-07 12:08:52 +01:00
parent adc21baa28
commit 1692bd98fd
20 changed files with 169 additions and 105 deletions

View File

@ -0,0 +1,18 @@
// +build !linux,!darwin,!windows,!openbsd,!freebsd,!netbsd
package defaults
// Sane defaults for the other platforms. The "default" options may be
// may be replaced by the running configuration.
func GetDefaults() platformDefaultParameters {
return platformDefaultParameters{
// Admin
DefaultAdminListen: "tcp://localhost:9001",
// TUN/TAP
MaximumIfMTU: 65535,
DefaultIfMTU: 65535,
DefaultIfName: "none",
DefaultIfTAPMode: false,
}
}