You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix#744: Preserve domain names while preventing localhost duplicates
The normalize_url method was resolving ALL domain names to IP addresses,
which breaks for services behind CDNs, load balancers, or reverse
proxies. This fix:
- Preserves domain names for external services (CDN/load balancer support)
- Only normalizes 127.0.0.1 to localhost to prevent local duplicates
- Maintains fix for issue #649 for localhost/127.0.0.1 duplicates
- Keeps compatibility with PR #712's duplicate prevention for local services
Changes:
- Removed socket.gethostbyname() for external domains
- Added special case to convert 127.0.0.1 to localhost
- Updated tests to verify both behaviors
- Added regression test for duplicate prevention
This balances the needs of both issues:
- #649: Prevent localhost/127.0.0.1 duplicates (still fixed)
- #744: Support services behind CDNs/load balancers (now fixed)
Signed-off-by: Mihai Criveti <[email protected]>
* Fix localhost resolution
Signed-off-by: Mihai Criveti <[email protected]>
* fix pylint
Signed-off-by: RAKHI DUTTA <[email protected]>
---------
Signed-off-by: Mihai Criveti <[email protected]>
Signed-off-by: RAKHI DUTTA <[email protected]>
Co-authored-by: RAKHI DUTTA <[email protected]>
0 commit comments