mirror of
https://github.com/2dust/v2rayN.git
synced 2025-04-19 21:52:25 +00:00
Bug fix
This commit is contained in:
parent
7a1d12be76
commit
800d193acb
4 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -379,6 +379,7 @@
|
|||
</Grid.ColumnDefinitions>
|
||||
|
||||
<TextBlock
|
||||
x:Name="tbAutoRun"
|
||||
Grid.Row="1"
|
||||
Grid.Column="0"
|
||||
VerticalAlignment="Center"
|
||||
|
|
|
@ -172,6 +172,7 @@ namespace v2rayN.Desktop.Views
|
|||
|
||||
if (Utils.IsOSX())
|
||||
{
|
||||
tbAutoRun.IsVisible = false;
|
||||
togAutoRun.IsVisible = false;
|
||||
//TODO
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue