Fix for when port isn't specified on rs nodes (Alex Stupka)
This commit is contained in:
parent
5860265cc9
commit
2d2122d5f4
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user