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

allow omitted octets with ipv4 #45

Open
verfriemelt-dot-org opened this issue Jun 26, 2024 · 0 comments
Open

allow omitted octets with ipv4 #45

verfriemelt-dot-org opened this issue Jun 26, 2024 · 0 comments

Comments

@verfriemelt-dot-org
Copy link

heyho,

i really like this service, and a easy way to make it even better would be to support ipv4 ips which omits octets.

$ ping 127.1
PING 127.1 (127.0.0.1) 56(84) bytes of data.

maybe even:

$ ping 127.257
PING 127.257 (127.0.1.1) 56(84) bytes of data.

see https://linux.die.net/man/3/inet_aton and some discussion about that on hackernews: https://news.ycombinator.com/item?id=16728255
the shortest localhost would be 0.nip.io which is also mentioned in the discussion.

$ ping 0
PING 0 (127.0.0.1) 56(84) bytes of data.

thank you for your work :)

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