add check for bad paths

This commit is contained in:
Erik 2016-07-28 21:36:37 -04:00
parent 637e0bb14c
commit d03d77aff8
No known key found for this signature in database
GPG Key ID: 4930B7C5FBC1A69D

View File

@ -102,6 +102,10 @@ public final class SocketEngine : NSObject, NSURLSessionDelegate, SocketEnginePo
forceWebsockets = force
case let .Path(path):
socketPath = path
if !socketPath.hasSuffix("/") {
socketPath += "/"
}
case let .VoipEnabled(enable):
voipEnabled = enable
case let .Secure(secure):