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

Spectrum: Support IPv4 in SpectrumApplication like we can do on the web interface #1514

Open
atmosx opened this issue Mar 6, 2024 · 0 comments

Comments

@atmosx
Copy link

atmosx commented Mar 6, 2024

Current cloudflare-go version

v0.89.0

Description

The web interface allows to create a spectrum application using an origin IP address. Here's the description:

Origin
You can designate an IP, DNS record, or a Cloudflare Load Balancer as your origin.
Enter the IP or DNS record and port of your service. Your service must use the same transport protocol as the edge port.

However, the API doesn't seem to support using IPv4/6 addresses as origin. Likewise the go library comes with the error:

The origin DNS configuration is invalid. (11001)

if we use an IP address such as:

	ip := &cloudflare.SpectrumApplicationOriginDNS{
		Name: "1.2.3.4", // "origin.domain.com"
	}

Use cases

Registering spectrum applications via API using IP addresses for origins and not DNS names.

Potential cloudflare-go usage

Registering spectrum applications via API using IP addresses for origin's and not DNS names using cloudflare-go.

References

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant