mirror of
https://github.com/bolucat/Archive.git
synced 2025-10-26 17:50:48 +08:00
Update On Fri Apr 25 14:33:06 CEST 2025
This commit is contained in:
@@ -88,7 +88,6 @@ public class OptionSettingViewModel : MyReactiveObject
|
||||
[Reactive] public int TunMtu { get; set; }
|
||||
[Reactive] public bool TunEnableExInbound { get; set; }
|
||||
[Reactive] public bool TunEnableIPv6Address { get; set; }
|
||||
[Reactive] public string TunLinuxSudoPassword { get; set; }
|
||||
|
||||
#endregion Tun mode
|
||||
|
||||
@@ -205,7 +204,6 @@ public class OptionSettingViewModel : MyReactiveObject
|
||||
TunMtu = _config.TunModeItem.Mtu;
|
||||
TunEnableExInbound = _config.TunModeItem.EnableExInbound;
|
||||
TunEnableIPv6Address = _config.TunModeItem.EnableIPv6Address;
|
||||
TunLinuxSudoPassword = _config.TunModeItem.LinuxSudoPwd;
|
||||
|
||||
#endregion Tun mode
|
||||
|
||||
@@ -358,11 +356,7 @@ public class OptionSettingViewModel : MyReactiveObject
|
||||
_config.TunModeItem.Mtu = TunMtu;
|
||||
_config.TunModeItem.EnableExInbound = TunEnableExInbound;
|
||||
_config.TunModeItem.EnableIPv6Address = TunEnableIPv6Address;
|
||||
if (TunLinuxSudoPassword != _config.TunModeItem.LinuxSudoPwd)
|
||||
{
|
||||
_config.TunModeItem.LinuxSudoPwd = DesUtils.Encrypt(TunLinuxSudoPassword);
|
||||
}
|
||||
|
||||
|
||||
//coreType
|
||||
await SaveCoreType();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user