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

Ipv6 support in buildServerUrl() #1076

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open

Conversation

jessevz
Copy link
Contributor

@jessevz jessevz commented Sep 13, 2024

fixes #725

The current code didn't work in case of an ipv6 address. This is because the host name got parsed by using strpos($hostname, ":"). this goes perfectly fine for an ipv4 address. But when you have an ipv6 address that already contains multiple ":" characters this goes wrong. For example http://[201:a373:f940:2421:b2f2:6a91:86b7:5628]/api/server.php would become http://[201/api/server.php. I fixed it by using strrpos when the server is not at port 80 or 433. This way the last occurrence of ":" will be used which splits the hostname of the port.

zyronix and others added 3 commits April 22, 2024 10:48
@zyronix
Copy link
Member

zyronix commented Sep 13, 2024

There is something wrong with the pr. you are also including some other commits it seems.

@jessevz
Copy link
Contributor Author

jessevz commented Sep 13, 2024

ah yes i see its because i forked the main branch and i made a pull request for the dev branch and apparently the main branch has more commits than the dev branch. I could revert the commits but i dont know if it really matters because with this pull request the dev branch will be up to date again with the main branch.

@gluafamichl
Copy link
Contributor

Can we check an merge this PR or do you want to revert the changes made for HashLists?

@gluafamichl gluafamichl self-requested a review November 6, 2024 12:40
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.

4 participants