[SERVER-47545] isSelf should consider any host address in the 127.0.0.1/8 range as the loopback interface Created: 15/Apr/20  Updated: 29/Oct/23  Resolved: 16/Apr/20

Status: Closed
Project: Core Server
Component/s: Networking, Replication
Affects Version/s: None
Fix Version/s: 4.4.0-rc2, 4.7.0

Type: Task Priority: Major - P3
Reporter: William Schultz (Inactive) Assignee: William Schultz (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
related to SERVER-47515 Skip config validation if contents ha... Closed
related to SERVER-35385 _isSelf invoked unnecesarily on Debia... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.4
Sprint: Repl 2020-04-20
Participants:
Linked BF Score: 41

 Description   

Currently the isSelf command will only consider a given hostname as the local machine if it's corresponding IP address exactly matches one of the IP addresses the process is listening to. If the given hostname maps to some address in the 127.0.0.1/8 range that is not 127.0.0.1, though, it will not consider this as pointing to the loopback and will bypass this fast path. We should allow it to consider any host address in this range as mapping to the loopback.



 Comments   
Comment by Githook User [ 20/Apr/20 ]

Author:

{'name': 'William Schultz', 'email': 'william.schultz@mongodb.com', 'username': 'will62794'}

Message: SERVER-47545 Allow isSelf to consider any IP address in the 127.0.0.1/8 range as pointing to the loopback

(cherry picked from commit 5d27d869ef502efc0e6bb27f028676ed479efaa3)
Branch: v4.4
https://github.com/mongodb/mongo/commit/a7dcecf3da26fa73a033170283431c6607f7ec21

Comment by Githook User [ 16/Apr/20 ]

Author:

{'name': 'William Schultz', 'email': 'william.schultz@mongodb.com', 'username': 'will62794'}

Message: SERVER-47545 Allow isSelf to consider any IP address in the 127.0.0.1/8 range as pointing to the loopback
Branch: master
https://github.com/mongodb/mongo/commit/5d27d869ef502efc0e6bb27f028676ed479efaa3

Generated at Thu Feb 08 05:14:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.