[setup - the official Cygwin setup program] branch master, updated. release_2.891

jturney-9JcytcrH/[email protected]
Newsgroups gmane.os.cygwin.cvs.apps
Message-ID <[email protected]>


https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/setup.git;h=3d7dbd620def0de9b9f1629f9108ebed769cfc71

commit 3d7dbd620def0de9b9f1629f9108ebed769cfc71
Author: Jon Turney <[email protected]>
Date:   Thu Mar 15 22:13:05 2018 +0000

    Migrate configured connection type from the removed 'direct(legacy)' to 'direct'


Diff:
---
 ConnectionSetting.cc |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/ConnectionSetting.cc b/ConnectionSetting.cc
index 2370a20..d33acc9 100644
--- a/ConnectionSetting.cc
+++ b/ConnectionSetting.cc
@@ -64,6 +64,10 @@ ConnectionSetting::typeFromString(const std::string& aType)
   if (!casecompare(aType, "Proxy"))
     return IDC_NET_PROXY;
 
+  /* Migrate the removed direct(legacy) to direct */
+  if (!casecompare(aType, "Legacy"))
+    return IDC_NET_DIRECT;
+
   /* A sanish default */
   return IDC_NET_PRECONFIG;
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.