From f3e1e32973f6f40471b398625f3d1372f93a70cd Mon Sep 17 00:00:00 2001 From: Sigurd Meldgaard Date: Thu, 23 May 2019 15:48:46 +0200 Subject: [PATCH] Allow authority for insecure connections (#179) --- lib/src/client/options.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/src/client/options.dart b/lib/src/client/options.dart index 5daa61f..a0d2c1e 100644 --- a/lib/src/client/options.dart +++ b/lib/src/client/options.dart @@ -63,7 +63,8 @@ class ChannelCredentials { this._certificatePassword, this.authority, this.onBadCertificate); /// Disable TLS. RPCs are sent in clear text. - const ChannelCredentials.insecure() : this._(false, null, null, null, null); + const ChannelCredentials.insecure({String authority}) + : this._(false, null, null, authority, null); /// Enable TLS and optionally specify the [certificates] to trust. If /// [certificates] is not provided, the default trust store is used.