File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
src/main/java/io/grpc/examples/helloworldtls Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,8 @@ application {
7575 applicationDistribution. into(' bin' ) {
7676 from(helloWorldTlsServer)
7777 from(helloWorldTlsClient)
78- fileMode = 0755
78+ filePermissions {
79+ unix(0755 )
80+ }
7981 }
8082}
Original file line number Diff line number Diff line change @@ -68,8 +68,8 @@ public static void main(String[] args) throws Exception {
6868
6969 if (args .length < 2 || args .length == 4 || args .length > 5 ) {
7070 System .out .println ("USAGE: HelloWorldClientTls host port [trustCertCollectionFilePath " +
71- "[clientCertChainFilePath clientPrivateKeyFilePath]]\n Note: clientCertChainFilePath and " +
72- "clientPrivateKeyFilePath are only needed if mutual auth is desired." );
71+ "[clientCertChainFilePath clientPrivateKeyFilePath]]\n Note: clientCertChainFilePath and " +
72+ "clientPrivateKeyFilePath are only needed if mutual auth is desired." );
7373 System .exit (0 );
7474 }
7575
@@ -88,9 +88,9 @@ public static void main(String[] args) throws Exception {
8888 String host = args [0 ];
8989 int port = Integer .parseInt (args [1 ]);
9090 ManagedChannel channel = Grpc .newChannelBuilderForAddress (host , port , tlsBuilder .build ())
91- /* Only for using provided test certs. */
92- .overrideAuthority ("foo.test.google.fr" )
93- .build ();
91+ /* Only for using provided test certs. */
92+ .overrideAuthority ("foo.test.google.fr" )
93+ .build ();
9494 try {
9595 HelloWorldClientTls client = new HelloWorldClientTls (channel );
9696 client .greet (host );
You can’t perform that action at this time.
0 commit comments