mirror of
https://github.com/grpc/grpc-node.git
synced 2025-12-08 18:23:54 +00:00
Fix switched condition in channel code
This commit is contained in:
parent
94f059ae21
commit
ecb84dafb2
@ -213,9 +213,9 @@ export class Http2Channel extends EventEmitter implements Channel {
|
||||
private readonly options: Partial<ChannelOptions>) {
|
||||
super();
|
||||
if (credentials.isSecure()) {
|
||||
this.target = new url.URL(`http://${address}`);
|
||||
} else {
|
||||
this.target = new url.URL(`https://${address}`);
|
||||
} else {
|
||||
this.target = new url.URL(`http://${address}`);
|
||||
}
|
||||
// TODO(murgatroid99): Add more centralized handling of channel options
|
||||
if (this.options['grpc.default_authority']) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user