Skip to content

Commit

Permalink
Merge pull request #29 from LoganWright/patch-1
Browse files Browse the repository at this point in the history
fix port error
  • Loading branch information
Joannis authored Aug 1, 2016
2 parents a0d3bec + e72cc7a commit 4df9cd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Server.swift
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public final class Server {
#if !swift(>=3.0)
let port: UInt16 = UInt16(url.port?.shortValue ?? 27017)
#else
let port: UInt16 = UInt16(url.port?.int16Value ?? 27017)
let port: UInt16 = UInt16(url.port?.intValue ?? 27017)
#endif

try self.init(at: host, port: port, using: authentication, using: tcpDriver, automatically: connecting)
Expand Down

0 comments on commit 4df9cd0

Please sign in to comment.