Skip to content
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

Merged
merged 1 commit into from
Oct 1, 2019

Conversation

gposton
Copy link
Contributor

@gposton gposton commented Sep 27, 2019

This PR needs merged and vendored in prior to merging this: cloudflare/cloudflare-go#350

@@ -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"`
Copy link
Contributor

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.

Copy link
Contributor Author

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",
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed. thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed, thanks!

@patryk
Copy link
Contributor

patryk commented Sep 30, 2019

Please add new field to docs.

@patryk
Copy link
Contributor

patryk commented Oct 1, 2019

@ghost ghost added the kind/documentation Categorizes issue or PR as related to documentation. label Oct 1, 2019
@gposton
Copy link
Contributor Author

gposton commented Oct 1, 2019

@gposton gposton closed this Oct 1, 2019
@gposton gposton reopened this Oct 1, 2019
@patryk patryk merged commit fc4e5ec into cloudflare:master Oct 1, 2019
@patryk
Copy link
Contributor

patryk commented Oct 1, 2019

Great, thanks @gposton !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies kind/documentation Categorizes issue or PR as related to documentation. size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants