Skip to content

Commit 7d20a99

Browse files
authored
Actually set sniHostname (#21)
1 parent 0fc5fe2 commit 7d20a99

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Sources/WSClient/WebSocketClientConfiguration.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public struct WebSocketClientConfiguration: Sendable {
4040
/// - autoPing: Automatic Ping configuration
4141
/// - validateUTF8: Should text be checked to see if it is valid UTF8
4242
/// - sniHostname: Hostname used during TLS handshake
43-
@_disfavoredOverload
4443
public init(
4544
maxFrameSize: Int = (1 << 14),
4645
additionalHeaders: HTTPFields = .init(),
@@ -56,6 +55,6 @@ public struct WebSocketClientConfiguration: Sendable {
5655
self.closeTimeout = closeTimeout
5756
self.autoPing = autoPing
5857
self.validateUTF8 = validateUTF8
59-
self.sniHostname = nil
58+
self.sniHostname = sniHostname
6059
}
6160
}

0 commit comments

Comments
 (0)