Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <197930-2200310423125533218@hedden.us> X-Priority: 3 From: "Jerry D. Hedden" To: cygwin AT cygwin DOT com Subject: PATCH: Save/load proxy settings in setup.exe Date: Thu, 23 Oct 2003 08:55:33 -0400 MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h9NCskg5007793 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/