diff --git a/v2rayN/ServiceLib/ViewModels/OptionSettingViewModel.cs b/v2rayN/ServiceLib/ViewModels/OptionSettingViewModel.cs index 53fe1df6..6dc63db0 100644 --- a/v2rayN/ServiceLib/ViewModels/OptionSettingViewModel.cs +++ b/v2rayN/ServiceLib/ViewModels/OptionSettingViewModel.cs @@ -347,7 +347,7 @@ namespace ServiceLib.ViewModels _config.TunModeItem.EnableIPv6Address = TunEnableIPv6Address; if (TunLinuxSudoPassword != _config.TunModeItem.LinuxSudoPwd) { - _config.TunModeItem.LinuxSudoPwd = DesUtils.Encrypt(TunLinuxSudoPassword); + _config.TunModeItem.LinuxSudoPwd = AesUtils.Encrypt(TunLinuxSudoPassword); } //coreType @@ -405,4 +405,4 @@ namespace ServiceLib.ViewModels } } } -} \ No newline at end of file +}