diff options
author | Simon Warta <[email protected]> | 2015-12-09 15:15:16 +0100 |
---|---|---|
committer | Simon Warta <[email protected]> | 2015-12-09 15:15:16 +0100 |
commit | 91bb3db791857a740423e3b2cc8a175d83939a4f (patch) | |
tree | 8d5ae83d0c87037b14f6a7a071b6d2eb7723423e /src | |
parent | ed6b15a507cb3a133e4d82896b9fdd8f86e90188 (diff) |
Fix tls_proxy app
Closes #345
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd/tls_proxy.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/cmd/tls_proxy.cpp b/src/cmd/tls_proxy.cpp index 724a1e00c..5071cb8bb 100644 --- a/src/cmd/tls_proxy.cpp +++ b/src/cmd/tls_proxy.cpp @@ -392,20 +392,20 @@ size_t choose_thread_count() return 2; } -int tls_proxy(int argc, char* argv[]) +int tls_proxy(const std::vector<std::string> &args) { - if(argc != 6) + if(args.size() != 6) { - std::cout << "Usage: " << argv[0] << " listen_port target_host target_port server_cert server_key" << std::endl; + std::cout << "Usage: " << args[0] << " listen_port target_host target_port server_cert server_key" << std::endl; return 1; } - const size_t listen_port = to_u32bit(argv[1]); - const std::string target = argv[2]; - const std::string target_port = argv[3]; + const size_t listen_port = to_u32bit(args[1]); + const std::string target = args[2]; + const std::string target_port = args[3]; - const std::string server_crt = argv[4]; - const std::string server_key = argv[5]; + const std::string server_crt = args[4]; + const std::string server_key = args[5]; const size_t num_threads = choose_thread_count(); // make configurable |