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.