0
0
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:
Mathias Stearn 2010-09-14 16:01:09 -04:00
parent 8e5e584be4
commit 3326c8e257

View File

@ -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()){