This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
PATCH: Save/load proxy settings in setup.exe
- From: "Jerry D. Hedden" <jerry at hedden dot us>
- To: cygwin at cygwin dot com
- Date: Thu, 23 Oct 2003 08:55:33 -0400
- Subject: PATCH: Save/load proxy settings in setup.exe
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/