diff --git a/v2rayN/ServiceLib/Handler/ConfigHandler.cs b/v2rayN/ServiceLib/Handler/ConfigHandler.cs index e1298e29..bbc23f1c 100644 --- a/v2rayN/ServiceLib/Handler/ConfigHandler.cs +++ b/v2rayN/ServiceLib/Handler/ConfigHandler.cs @@ -1107,7 +1107,8 @@ public static class ConfigHandler if (toFile) { - profileItem.SetProtocolExtra(); + //profileItem.SetProtocolExtra(); + profileItem.SetProtocolExtra(profileItem.GetProtocolExtra()); await SQLiteHelper.Instance.ReplaceAsync(profileItem); } return 0; @@ -1135,6 +1136,7 @@ public static class ConfigHandler && AreEqual(o.Address, n.Address) && o.Port == n.Port && AreEqual(o.Password, n.Password) + && AreEqual(o.Username, n.Username) && AreEqual(oProtocolExtra.VlessEncryption, nProtocolExtra.VlessEncryption) && AreEqual(oProtocolExtra.SsMethod, nProtocolExtra.SsMethod) && AreEqual(oProtocolExtra.VmessSecurity, nProtocolExtra.VmessSecurity)