haraka / haraka-net-utils

haraka network utilities
https://www.npmjs.com/package/haraka-net-utils
MIT License
2 stars 13 forks source link

add is_local_host function #63

Closed DoobleD closed 2 years ago

DoobleD commented 2 years ago

This can be used by Haraka to prevent a local delivery loop. See haraka#3002.

msimerson commented 2 years ago

Huh, windows doesn't like resolving 'localhost' to a localhost IP. Interesting. You could git into that if you wish, or just remove that test.

DoobleD commented 2 years ago

Thanks for the feedback @msimerson.

Wow, that's unexpected. I couldn't find any related issue in nodejs's DNS module. Perhaps it's an issue with the CI. I'm too lazy to dig more now, so I've removed the test as suggested.