Skip to content

Commit d03d77a

Browse files
committed
add check for bad paths
1 parent 637e0bb commit d03d77a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Source/SocketEngine.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ public final class SocketEngine : NSObject, NSURLSessionDelegate, SocketEnginePo
102102
forceWebsockets = force
103103
case let .Path(path):
104104
socketPath = path
105+
106+
if !socketPath.hasSuffix("/") {
107+
socketPath += "/"
108+
}
105109
case let .VoipEnabled(enable):
106110
voipEnabled = enable
107111
case let .Secure(secure):

0 commit comments

Comments
 (0)