When users have multiple domains, tunnel route dns would incorrectly use the default zoneID from the login certificate, creating an invalid CNAME record (e.g. app.domain1.com.domain2.com). This fix introduces ListZones in cfapi to fetch all valid zones for the account and explicitly checks if the provided hostname exactly matches or is a subdomain of a discovered zone, preventing this behavior and dynamically adjusting the endpoint to the correct Zone ID. |
||
|---|---|---|
| .. | ||
| base_client.go | ||
| client.go | ||
| hostname.go | ||
| hostname_test.go | ||
| ip_route.go | ||
| ip_route_filter.go | ||
| ip_route_test.go | ||
| tunnel.go | ||
| tunnel_filter.go | ||
| tunnel_test.go | ||
| virtual_network.go | ||
| virtual_network_filter.go | ||
| virtual_network_test.go | ||