Skip to content

Commit 0ca6902

Browse files
committed
Make secure client connections the default.
1 parent 79b392c commit 0ca6902

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/gRPC/Channel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class Channel {
3838
///
3939
/// - Parameter address: the address of the server to be called
4040
/// - Parameter secure: if true, use TLS
41-
public init(address: String, secure: Bool = false) {
41+
public init(address: String, secure: Bool = true) {
4242
self.host = address
4343
if secure {
4444
underlyingChannel = cgrpc_channel_create_secure(address, roots_pem(), nil)

0 commit comments

Comments
 (0)