|
@@ -26,6 +26,7 @@ type Node struct {
|
|
|
Endpoint string `json:"endpoint" bson:"endpoint" validate:"endpoint_check"`
|
|
|
PostUp string `json:"postup" bson:"postup"`
|
|
|
PreUp string `json:"preup" bson:"preup"`
|
|
|
+ AllowedIPs string `json:"preup" bson:"preup"`
|
|
|
PersistentKeepalive int32 `json:"persistentkeepalive" bson:"persistentkeepalive" validate: "omitempty,numeric,max=1000"`
|
|
|
SaveConfig *bool `json:"saveconfig" bson:"saveconfig"`
|
|
|
AccessKey string `json:"accesskey" bson:"accesskey"`
|
|
@@ -40,6 +41,8 @@ type Node struct {
|
|
|
Password string `json:"password" bson:"password" validate:"password_check"`
|
|
|
Group string `json:"group" bson:"group" validate:"group_exists"`
|
|
|
IsPending bool `json:"ispending" bson:"ispending"`
|
|
|
+ IsGateway bool `json:"isgateway" bson:"isgateway"`
|
|
|
+ GatewayRange string `json:"gatewayrange" bson:"gatewayrange"`
|
|
|
PostChanges string `json:"postchanges" bson:"postchanges"`
|
|
|
}
|
|
|
|