Open nekonomicon opened 6 years ago
localhost
name is a part of RFC. Who is crazy enough to have DNS implementation, which will NOT point .localhost
to 127.0.0.1?
Any linux or *BSD user can rename localhost
to dogy
or .
as example.
Maybe exists another solution to check it?
And localhost will still point to local host.
The only bug I see here is calling NET_StringToAdr with hostname, which will result a netadr_t filled with local address, but wrong type. But it does not seems to be critical.
Just valgrind wrote about uninitialized value:
https://pastebin.com/9sAE0VHL
I think reason in hostname. May be it's false positive, but not reproducible when my hostname - localhost
.
This check not working if local server has another hostname and such behavior can cause crashes in some cases.