add from yaml log

This commit is contained in:
2dust
2022-05-15 09:23:27 +08:00
parent 4e2f505a94
commit 2ead91914a
2 changed files with 2 additions and 5 deletions

View File

@@ -111,10 +111,6 @@ namespace clashN.Handler
{ {
config.constItem.defIEProxyExceptions = Global.IEProxyExceptions; config.constItem.defIEProxyExceptions = Global.IEProxyExceptions;
} }
//if (Utils.IsNullOrEmpty(config.remoteDNS))
//{
// config.remoteDNS = "1.1.1.1";
//}
if (config == null if (config == null
|| config.profileItems.Count <= 0 || config.profileItems.Count <= 0

View File

@@ -1114,8 +1114,9 @@ namespace clashN
T obj = deserializer.Deserialize<T>(str); T obj = deserializer.Deserialize<T>(str);
return obj; return obj;
} }
catch catch(Exception ex)
{ {
SaveLog("FromYaml", ex);
return deserializer.Deserialize<T>(""); return deserializer.Deserialize<T>("");
} }
} }