-
Notifications
You must be signed in to change notification settings - Fork 632
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add support for changing traffic type in spectrum apps #481
Conversation
@@ -20,6 +20,7 @@ type SpectrumApplication struct { | |||
IPFirewall bool `json:"ip_firewall,omitempty"` | |||
ProxyProtocol bool `json:"proxy_protocol,omitempty"` | |||
TLS string `json:"tls,omitempty"` | |||
TrafficType string `json:"traffic_type,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please PR this in https://github.com/cloudflare/cloudflare-go/blob/master/spectrum.go
We'll vendor the change back here in separate PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Default: "tcp", | ||
Optional: true, | ||
ValidateFunc: validation.StringInSlice([]string{ | ||
"tcp", "http", "https", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Valid values are: direct
, http
, https
https://api.cloudflare.com/#spectrum-applications-properties
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed. thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed, thanks!
Please add new field to docs. |
e10e8ca
to
9666435
Compare
Done! |
Great, thanks @gposton ! |
This PR needs merged and vendored in prior to merging this: cloudflare/cloudflare-go#350