mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
Remove sameHostname and isLocalHost shortcuts since they make testing isSelf harder SERVER-1515
This commit is contained in:
parent
8e5e584be4
commit
3326c8e257
@ -810,8 +810,6 @@ namespace mongo {
|
||||
|
||||
if( p != cmdLine.port ){
|
||||
return false;
|
||||
} else if (sameHostname(getHostName(), _host) || isLocalHost()) {
|
||||
return true;
|
||||
} else {
|
||||
map<string, bool>::const_iterator it = isSelfCache.find(_host);
|
||||
if (it != isSelfCache.end()){
|
||||
|
Loading…
Reference in New Issue
Block a user