mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 19:13:34 +00:00
start WG network when the machine is initialised via RPC call
This commit is contained in:
@@ -35,6 +35,7 @@ type PeerConfig struct {
|
||||
PublicKey secret.Secret
|
||||
}
|
||||
|
||||
// IsConfigured returns true if the configuration is complete to establish a WireGuard network.
|
||||
func (c Config) IsConfigured() bool {
|
||||
return c.Subnet != (netip.Prefix{}) && c.ManagementIP != (netip.Addr{}) &&
|
||||
c.PrivateKey != nil && c.PublicKey != nil
|
||||
|
||||
Reference in New Issue
Block a user