From: Jon Turney Date: Thu, 15 Mar 2018 22:13:05 +0000 (+0000) Subject: Migrate configured connection type from the removed 'direct(legacy)' to 'direct' X-Git-Tag: release_2.891^0 X-Git-Url: https://cygwin.com/git/?a=commitdiff_plain;h=3d7dbd620def0de9b9f1629f9108ebed769cfc71;p=cygwin-apps%2Fsetup.git Migrate configured connection type from the removed 'direct(legacy)' to 'direct' --- diff --git a/ConnectionSetting.cc b/ConnectionSetting.cc index 2370a20a..d33acc9a 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; }