Hisham on Nostr: My Ubuntu box didn't have "localhost" for ::1 in /etc/hosts, only for 127.0.0.1. (I ...
My Ubuntu box didn't have "localhost" for ::1 in /etc/hosts, only for 127.0.0.1. (I don't remember if that was the default or if I took it out at some point *). It does have ip6-localhost as a name.
Some tests in a third-party suite (likely written for macos) failed because of that. So I added localhost to ::1 in my /etc/hosts and the tests now pass.
(If that was even the default Ubuntu setup,) is there a reason why localhost is IPv4 only?
Published at
2024-08-06 13:43:58Event JSON
{
"id": "f302341d304dd2f7c2e6288554fc0337091db549585dd278b880db8ef472c250",
"pubkey": "5a99c001a61c7604e620f02b8345fac4413b535f86aa1c009a0f217b756c8252",
"created_at": 1722951838,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/@hisham_hm/112915371680839346",
"web"
],
[
"proxy",
"https://mastodon.social/users/hisham_hm/statuses/112915371680839346",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://mastodon.social/users/hisham_hm/statuses/112915371680839346",
"pink.momostr"
],
[
"-"
]
],
"content": "My Ubuntu box didn't have \"localhost\" for ::1 in /etc/hosts, only for 127.0.0.1. (I don't remember if that was the default or if I took it out at some point *). It does have ip6-localhost as a name.\n\nSome tests in a third-party suite (likely written for macos) failed because of that. So I added localhost to ::1 in my /etc/hosts and the tests now pass.\n\n(If that was even the default Ubuntu setup,) is there a reason why localhost is IPv4 only?",
"sig": "610316fcb5e138b1ce2996ca648b3cd99560ae687022682ca17c1f8ef1e7256a96b7b3c883ee143d393f28594a173031c9ad7496b23cd74397b5b77be764d95f"
}