Skip to content
Snippets Groups Projects
Commit 8abc16ad authored by cyberta's avatar cyberta Committed by cyberta
Browse files

update models

parent 7c39ed0d
Branches
Tags
1 merge request!72gateway selector
......@@ -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"`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment