From 932b86ef57836bdb20fa96d88823174b5ecced60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=B4=E5=A8=83=E9=85=B1?= Date: Thu, 27 Jul 2017 15:54:11 +0800 Subject: [PATCH] bump --- shadowsocks-csharp/Controller/UpdateChecker.cs | 2 +- shadowsocks-csharp/Program.cs | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/shadowsocks-csharp/Controller/UpdateChecker.cs b/shadowsocks-csharp/Controller/UpdateChecker.cs index f5ed3fe9..73726a09 100755 --- a/shadowsocks-csharp/Controller/UpdateChecker.cs +++ b/shadowsocks-csharp/Controller/UpdateChecker.cs @@ -21,7 +21,7 @@ public class UpdateChecker public const string Name = "ShadowsocksR"; public const string Copyright = "Copyright © BreakWa11 2017. Fork from Shadowsocks by clowwindy"; - public const string Version = "4.6.1"; + public const string Version = "4.7.0"; #if !_DOTNET_4_0 public const string NetVer = "2.0"; #elif !_CONSOLE diff --git a/shadowsocks-csharp/Program.cs b/shadowsocks-csharp/Program.cs index 2a392251..75df2c43 100755 --- a/shadowsocks-csharp/Program.cs +++ b/shadowsocks-csharp/Program.cs @@ -65,16 +65,18 @@ static void Main(string[] args) { if (try_times >= 5) return; - InputPassword dlg = new InputPassword(); - if (dlg.ShowDialog() == DialogResult.OK) - Configuration.SetPassword(dlg.password); - else - return; + using (InputPassword dlg = new InputPassword()) + { + if (dlg.ShowDialog() == DialogResult.OK) + Configuration.SetPassword(dlg.password); + else + return; + } try_times += 1; } #endif _controller = new ShadowsocksController(); - + HostMap.Instance().LoadHostFile(); #if !_CONSOLE _viewController = new MenuViewController(_controller); #endif