-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Normalize IPs during localhost loopback proxying
This shouldn't be visible externally - it just affects internal address resolution logic. This is useful because of cacheable-lookup#85 - in Node v20.12+ IPv6 IP DNS resolution can fail in unusual ways, so we'd rather preserve IPv4 traffic in simple IPv4 format where possible. The 'better' solution for this would be cacheable-lookup correctly resolving this address as dns.lookup does, or some kind of wrapper that avoids resolving IPs entirely (it's just inefficient and asking for trouble really).
- Loading branch information
Showing
2 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters