mirror of
https://github.com/2dust/v2rayN.git
synced 2025-04-20 06:02:23 +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())
|
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 Task.Delay(10);
|
||||||
await proc.StandardInput.WriteLineAsync(pwd);
|
await proc.StandardInput.WriteLineAsync(pwd);
|
||||||
await Task.Delay(10);
|
await Task.Delay(10);
|
||||||
|
|
|
@ -347,7 +347,7 @@ namespace ServiceLib.ViewModels
|
||||||
_config.TunModeItem.EnableIPv6Address = TunEnableIPv6Address;
|
_config.TunModeItem.EnableIPv6Address = TunEnableIPv6Address;
|
||||||
if (TunLinuxSudoPassword != _config.TunModeItem.LinuxSudoPwd)
|
if (TunLinuxSudoPassword != _config.TunModeItem.LinuxSudoPwd)
|
||||||
{
|
{
|
||||||
_config.TunModeItem.LinuxSudoPwd = AesUtils.Encrypt(TunLinuxSudoPassword);
|
_config.TunModeItem.LinuxSudoPwd = DesUtils.Encrypt(TunLinuxSudoPassword);
|
||||||
}
|
}
|
||||||
|
|
||||||
//coreType
|
//coreType
|
||||||
|
|
|
@ -379,6 +379,7 @@
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
<TextBlock
|
<TextBlock
|
||||||
|
x:Name="tbAutoRun"
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
|
|
|
@ -172,6 +172,7 @@ namespace v2rayN.Desktop.Views
|
||||||
|
|
||||||
if (Utils.IsOSX())
|
if (Utils.IsOSX())
|
||||||
{
|
{
|
||||||
|
tbAutoRun.IsVisible = false;
|
||||||
togAutoRun.IsVisible = false;
|
togAutoRun.IsVisible = false;
|
||||||
//TODO
|
//TODO
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue