Skip to content

Fix IPv6 hostname resolution and literal handling in API URLs#51

Open
jdomenechg wants to merge 1 commit intoCpuID:masterfrom
jdomenechg:fix/ipv6-hostname-and-url
Open

Fix IPv6 hostname resolution and literal handling in API URLs#51
jdomenechg wants to merge 1 commit intoCpuID:masterfrom
jdomenechg:fix/ipv6-hostname-and-url

Conversation

@jdomenechg
Copy link

This PR fixes IPv6-related issues in the Proxmox PHP API client:

  • Properly handles hostnames that only resolve via AAAA records.
  • Correctly formats IPv6 literals in API URLs as required by RFC (using [ipv6]).

These changes prevent connection failures when using IPv6-only or IPv6-literal Proxmox endpoints.

Tested against Proxmox VE with IPv6 endpoints.

@lsthompson
Copy link
Collaborator

Thanks @jdomenechg - will work to bundle this in with other tweaks here in the next update!

@CpuID @danhunsaker - forking this out (as well) from PVEWHMCS to improve the client. :-)

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

Successfully merging this pull request may close these issues.

2 participants