From 8abc16ad223c2941e1932f727e4a19e179483ef7 Mon Sep 17 00:00:00 2001 From: cyBerta <cyberta@riseup.net> Date: Fri, 7 Mar 2025 02:44:55 +0100 Subject: [PATCH] update models --- pkg/models/resources.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/models/resources.go b/pkg/models/resources.go index 22e17c9..8e800d9 100644 --- a/pkg/models/resources.go +++ b/pkg/models/resources.go @@ -45,7 +45,7 @@ type Gateway struct { // An experimental gateway flags any gateway that, for whatever reason, // is not deemed stable. The expectation is that clients have to opt-in to // experimental gateways (and bridges too). - Experimental bool `json:"experimental"` + Experimental bool `json:"experimental,omitempty"` // Not used now - we could potentially flag gateways that are planned // to undergo maintenance mode some time in advance. // We can also automatically flag as not healthy gateways that appear @@ -68,7 +68,7 @@ type Gateway struct { Overloaded bool `json:"overloaded"` // The (primary) port this gateway is listening on. Port int `json:"port"` - // TCP, UDP or KCP. This was called "protocol" in previous versions of the API. + // TCP, UDP, KCP or Quic. This was called "protocol" in previous versions of the API. Transport string `json:"transport"` // Type is the type of gateway. The only valid type as of 2023 is openvpn. Type string `json:"type"` -- GitLab