this post was submitted on 08 Aug 2024
75 points (98.7% liked)

Technology

37599 readers
274 users here now

A nice place to discuss rumors, happenings, innovations, and challenges in the technology sphere. We also welcome discussions on the intersections of technology and society. If it’s technological news or discussion of technology, it probably belongs here.

Remember the overriding ethos on Beehaw: Be(e) Nice. Each user you encounter here is a person, and should be treated with kindness (even if they’re wrong, or use a Linux distro you don’t like). Personal attacks will not be tolerated.

Subcommunities on Beehaw:


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] dan@upvote.au 6 points 1 month ago* (last edited 1 month ago)

it makes connecting to localhost as easy as http://0:8080/ (for port 8080, but omit for port 80).

The thing is that it's not supposed to work, so it's essentially relying on undefined behaviour. Typing [::1]:8080 is nearly as easy.

skimming through these PRs, at least for WebKit, I don't see tests for shorthand IPs like 0 (and no Apple device to test with). What are the chances they missed those..?

I haven't seen the PRs, but IP comparison should really be using the binary form of the IPv4 address (a 32-bit number), not the human-friendly form.