Documentation ¶
Index ¶
- func CheckIPOverlap(a, b string) (bool, error)
- func FindMinimalNetwork(ipRanges []string) (string, error)
- func GenerateRandomIP(ipRanges []string) (string, string, error)
- func Must(err error)
- func MustGet[T any](val T, err error) T
- func NormalizeAllowedIP(ip string) (string, error)
- func OnInitialize(log *logrus.Logger, cmd *cobra.Command)
- func SetFlags(cmd *cobra.Command)
- type Config
- type Peer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIPOverlap ¶ added in v1.7.0
func FindMinimalNetwork ¶ added in v1.10.0
func GenerateRandomIP ¶ added in v1.10.0
func NormalizeAllowedIP ¶ added in v1.4.0
Types ¶
type Config ¶
type Config struct { PrivateKeyHex string `yaml:"-"` PrivateKey wgtypes.Key `yaml:"-"` Port uint16 `yaml:"port"` BindAddress string `yaml:"bindAddress,omitempty"` LogLevel string `yaml:"logLevel"` HubAddress string `yaml:"hubAddress,omitempty"` ExternalAddress string `yaml:"externalAddress,omitempty"` DebugServer bool `yaml:"debugServer,omitempty"` Webui bool `yaml:"webui,omitempty"` WebuiJWTSecret string `yaml:"webuiJWTSecret,omitempty"` WebuiAdminPasswordHash string `yaml:"webuiAdminPasswordHash,omitempty"` Peers []*Peer `yaml:"peers"` // contains filtered or unexported fields }
func (*Config) GetExternalAddress ¶ added in v1.13.0
func (*Config) GetHubAddress ¶ added in v1.4.0
func (*Config) ResolvedBindAddr ¶
Click to show internal directories.
Click to hide internal directories.