delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/23/08:54:49

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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" <jerry AT hedden DOT us>
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
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/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019