Fix for when port isn't specified on rs nodes (Alex Stupka)

This commit is contained in:
Kyle Banker 2010-12-14 17:46:40 -05:00
parent 5860265cc9
commit 2d2122d5f4

View File

@ -203,7 +203,7 @@ module Mongo
end
host, port = host.split(':')
[host, port.to_i]
[host, port ? port.to_i : Connection::DEFAULT_PORT]
end
# Replace the list of seed nodes with the canonical list.