mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 14:15:06 +03:00

By providing the following items to `LDFLAGS`: * `-X github.com/yggdrasil-network/yggdrasil-go/src/defaults.defaultConfig=/path/to/config` * '-X github.com/yggdrasil-network/yggdrasil-go/src/defaults.defaultAdminListen=unix://path/to/sock' Closes #818.
26 lines
636 B
Go
26 lines
636 B
Go
//go:build linux
|
|
// +build linux
|
|
|
|
package defaults
|
|
|
|
// 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},
|
|
},
|
|
|
|
// TUN/TAP
|
|
MaximumIfMTU: 65535,
|
|
DefaultIfMTU: 65535,
|
|
DefaultIfName: "auto",
|
|
}
|
|
}
|