Allow authority for insecure connections (#179)

This commit is contained in:
Sigurd Meldgaard 2019-05-23 15:48:46 +02:00 committed by GitHub
parent 0cbc5401c8
commit f3e1e32973
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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.