-
Notifications
You must be signed in to change notification settings - Fork 514
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FABN-1160] Fix TLS logic for discovered peers
The SDK assumes by default that peers and orderers returned by service discovery will be running with TLS (grpcs://). This is a bad assumption when we are connecting to a gateway peer that is not running with TLS (grpc://). Change the logic so that if we connect to a peer to perform discovery over TLS, then we assume that the discovered peers and orderers also use TLS. Likewise if we connect to a peer to perform discovery without TLS, then assume that the discovered peers and orderers also do not use TLS. It is highly unlikely (impossible even?) that you can have a mixed Fabric network with TLS and non-TLS peers. Change-Id: I9b8e0056cd6c6c743d6d7feab561cdaa8f7d3f05 Signed-off-by: Simon Stone <[email protected]>
- Loading branch information
Simon Stone
committed
Mar 4, 2019
1 parent
847d2da
commit c3b884b
Showing
6 changed files
with
373 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.