浏览代码

Make secure client connections the default.

Tim Burks 8 年之前
父节点
当前提交
0ca6902635
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Sources/gRPC/Channel.swift

+ 1 - 1
Sources/gRPC/Channel.swift

@@ -38,7 +38,7 @@ public class Channel {
   ///
   ///
   /// - Parameter address: the address of the server to be called
   /// - Parameter address: the address of the server to be called
   /// - Parameter secure: if true, use TLS
   /// - Parameter secure: if true, use TLS
-  public init(address: String, secure: Bool = false) {
+  public init(address: String, secure: Bool = true) {
     self.host = address
     self.host = address
     if secure {
     if secure {
       underlyingChannel = cgrpc_channel_create_secure(address, roots_pem(), nil)
       underlyingChannel = cgrpc_channel_create_secure(address, roots_pem(), nil)