Newer
Older
wg-portal / internal / wireguard / config.go
@Christoph Haas Christoph Haas on 19 Dec 2020 356 bytes ip and mtu updates (linux only)
package wireguard

type Config struct {
	DeviceName        string `yaml:"device" envconfig:"WG_DEVICE"`
	WireGuardConfig   string `yaml:"configFile" envconfig:"WG_CONFIG_FILE"`    // optional, if set, updates will be written to this file
	ManageIPAddresses bool   `yaml:"manageIPAddresses" envconfig:"MANAGE_IPS"` // handle ip-address setup of interface
}