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": "7aa9cb854b34849612501a7e54f4b738f12ec1651952f20e459217b6589ee053",
"pubkey": "655a8eb361e1e68b4db9d3bcaef1adca38986f7e9aab5d4c71b895a62a9e77e5",
"created_at": 1722951838,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/hisham_hm/statuses/112915371680839346",
"activitypub"
]
],
"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": "5b970f7c04c9350866d2c97b51f5cde06fb2a46eb0b238f23228f6fd6d536474ad38bd0bf7960c05573e19f955e695ebe9fa765d3692ade33575277be7160d8e"
}