]> cygwin.com Git - cygwin-apps/setup.git/commitdiff
Migrate configured connection type from the removed 'direct(legacy)' to 'direct' release_2.891
authorJon Turney <jon.turney@dronecode.org.uk>
Thu, 15 Mar 2018 22:13:05 +0000 (22:13 +0000)
committerJon Turney <jon.turney@dronecode.org.uk>
Thu, 15 Mar 2018 22:13:05 +0000 (22:13 +0000)
ConnectionSetting.cc

index 2370a20a76fa6fd5647f25b2cadae88911a701ae..d33acc9aa1171837a6fb13ca37fb7d402568afa4 100644 (file)
@@ -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;
 }
This page took 0.035489 seconds and 5 git commands to generate.