From 2d0046d752d083439cc9bf4b4ea11432f4bed559 Mon Sep 17 00:00:00 2001 From: Frank Weiler Date: Fri, 26 Sep 2008 08:08:22 +0000 Subject: [PATCH] make 'no proxy for host' available over boinccmd svn path=/workspaces/fweiler/boinc/; revision=16065 --- lib/boinc_cmd.C | 3 +++ lib/gui_rpc_client_print.C | 14 +++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/lib/boinc_cmd.C b/lib/boinc_cmd.C index 1d849c0049..5fa5fd095c 100644 --- a/lib/boinc_cmd.C +++ b/lib/boinc_cmd.C @@ -365,6 +365,9 @@ int main(int argc, char** argv) { pi.socks_version = atoi(next_arg(argc, argv, i)); pi.socks5_user_name = next_arg(argc, argv, i); pi.socks5_user_passwd = next_arg(argc, argv, i); + //FW + pi.noproxy_hosts = next_arg(argc,argv,i); + //FW retval = rpc.set_proxy_settings(pi); } else if (!strcmp(cmd, "--get_messages")) { int seqno = atoi(next_arg(argc, argv, i)); diff --git a/lib/gui_rpc_client_print.C b/lib/gui_rpc_client_print.C index 59abf66859..7b6f56275b 100644 --- a/lib/gui_rpc_client_print.C +++ b/lib/gui_rpc_client_print.C @@ -151,7 +151,19 @@ void MESSAGE::print() { ); } -void GR_PROXY_INFO::print() { // anyone need this? +void GR_PROXY_INFO::print() { // anyone need this? yes, boinc_cmd uses this + //FW + printf("HTTP server name: %s\n",this->http_server_name.c_str()); + printf("HTTP server port: %d\n",this->http_server_port); + printf("HTTP user name: %s\n",this->http_user_name.c_str()); + //printf("HTTP user password: %s\n",this->http_user_passwd.c_str()); + printf("SOCKS server name: %s\n",this->socks_server_name.c_str()); + printf("SOCKS server port: %d\n",this->socks_server_port); + printf("SOCKS version: %d\n",this->socks_version); + printf("SOCKS5 user name: %s\n",this->socks5_user_name.c_str()); + //printf("SOCKS5 user password: %s\n",this->socks5_user_passwd.c_str()); + printf("no proxy hosts: %s\n",this->noproxy_hosts.c_str()); + //FW } void HOST_INFO::print() {