Fix adding / to path
This commit is contained in:
parent
100a9730d2
commit
549df19d4a
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user