PATCH: Save/load proxy settings in setup.exe

Jerry D. Hedden jerry@hedden.us
Thu Oct 23 13:07:00 GMT 2003


One of the items on the TODO list for setup.exe is to save and load
proxy settings so the user doesn't have to keep entering them.

Below is a small patch to ConnectionSetting.cc to do just that:


39d38
<       delete f;
41a41,47
>       fg_ret = f->gets (localdir, 1000);
>       if (fg_ret)
>         net_proxy_host = strdup(fg_ret);
>       fg_ret = f->gets (localdir, 1000);
>       if (fg_ret)
>         net_proxy_port = atoi(fg_ret);
>       delete f;
48a55
>   char port_str[20];
62c69,71
<             // TODO: also write the proxy and port, and then parse
them in load.
---
>             f->write(net_proxy_host,strlen(net_proxy_host));
>             sprintf(port_str, "\n%d\n", net_proxy_port);
>             f->write(port_str,strlen(port_str));


Hope this gets incorporated soon.  Thanks.

=====
Jerry D. Hedden
<< If you're not having fun, then you're not doing it right! >>


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list