diff options
author | Tim Emiola <temiola@google.com> | 2015-03-05 15:17:30 -0800 |
---|---|---|
committer | Tim Emiola <temiola@google.com> | 2015-03-05 15:29:18 -0800 |
commit | 0ce8edc49ef4390deac36594bcc6f83b716466be (patch) | |
tree | 12169ae6846193069a622fc7d23777716da55ce3 /src/ruby/bin/interop | |
parent | 3a0d9768d3f167c9d54110ca08882d6c556658ca (diff) |
Updates ruby code affected by the secure server API change
Diffstat (limited to 'src/ruby/bin/interop')
-rwxr-xr-x | src/ruby/bin/interop/interop_server.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ruby/bin/interop/interop_server.rb b/src/ruby/bin/interop/interop_server.rb index b3b7d0c5a3..0819ba9bbc 100755 --- a/src/ruby/bin/interop/interop_server.rb +++ b/src/ruby/bin/interop/interop_server.rb @@ -176,12 +176,11 @@ end def main opts = parse_options host = "0.0.0.0:#{opts['port']}" + s = GRPC::RpcServer.new if opts['secure'] - s = GRPC::RpcServer.new(creds: test_server_creds) - s.add_http2_port(host, true) + s.add_http2_port(host, test_server_creds) logger.info("... running securely on #{host}") else - s = GRPC::RpcServer.new s.add_http2_port(host) logger.info("... running insecurely on #{host}") end |