This commit is contained in:
2dust 2024-11-26 14:39:33 +08:00
parent 7a1d12be76
commit 800d193acb
4 changed files with 4 additions and 2 deletions

View file

@ -323,7 +323,7 @@ namespace ServiceLib.Handler
if (isNeedSudo && _config.TunModeItem.LinuxSudoPwd.IsNotEmpty())
{
var pwd = AesUtils.Decrypt(_config.TunModeItem.LinuxSudoPwd);
var pwd = DesUtils.Decrypt(_config.TunModeItem.LinuxSudoPwd);
await Task.Delay(10);
await proc.StandardInput.WriteLineAsync(pwd);
await Task.Delay(10);

View file

@ -347,7 +347,7 @@ namespace ServiceLib.ViewModels
_config.TunModeItem.EnableIPv6Address = TunEnableIPv6Address;
if (TunLinuxSudoPassword != _config.TunModeItem.LinuxSudoPwd)
{
_config.TunModeItem.LinuxSudoPwd = AesUtils.Encrypt(TunLinuxSudoPassword);
_config.TunModeItem.LinuxSudoPwd = DesUtils.Encrypt(TunLinuxSudoPassword);
}
//coreType

View file

@ -379,6 +379,7 @@
</Grid.ColumnDefinitions>
<TextBlock
x:Name="tbAutoRun"
Grid.Row="1"
Grid.Column="0"
VerticalAlignment="Center"

View file

@ -172,6 +172,7 @@ namespace v2rayN.Desktop.Views
if (Utils.IsOSX())
{
tbAutoRun.IsVisible = false;
togAutoRun.IsVisible = false;
//TODO
}