Fix adding / to path

This commit is contained in:
Erik 2016-09-19 18:52:13 -04:00
parent 100a9730d2
commit 549df19d4a
No known key found for this signature in database
GPG Key ID: 4930B7C5FBC1A69D

View File

@ -101,11 +101,11 @@ public final class SocketEngine : NSObject, URLSessionDelegate, SocketEnginePoll
forceWebsockets = force
case let .path(path):
socketPath = path
case let .voipEnabled(enable):
if !socketPath.hasSuffix("/") {
socketPath += "/"
}
case let .voipEnabled(enable):
voipEnabled = enable
case let .secure(secure):
self.secure = secure