From 3d7dbd620def0de9b9f1629f9108ebed769cfc71 Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Thu, 15 Mar 2018 22:13:05 +0000 Subject: [PATCH] Migrate configured connection type from the removed 'direct(legacy)' to 'direct' --- ConnectionSetting.cc | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.43.5