Skip to content

Commit 932b86e

Browse files
committed
bump
1 parent 54e2378 commit 932b86e

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

shadowsocks-csharp/Controller/UpdateChecker.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class UpdateChecker
2121

2222
public const string Name = "ShadowsocksR";
2323
public const string Copyright = "Copyright © BreakWa11 2017. Fork from Shadowsocks by clowwindy";
24-
public const string Version = "4.6.1";
24+
public const string Version = "4.7.0";
2525
#if !_DOTNET_4_0
2626
public const string NetVer = "2.0";
2727
#elif !_CONSOLE

shadowsocks-csharp/Program.cs

+8-6
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,18 @@ static void Main(string[] args)
6565
{
6666
if (try_times >= 5)
6767
return;
68-
InputPassword dlg = new InputPassword();
69-
if (dlg.ShowDialog() == DialogResult.OK)
70-
Configuration.SetPassword(dlg.password);
71-
else
72-
return;
68+
using (InputPassword dlg = new InputPassword())
69+
{
70+
if (dlg.ShowDialog() == DialogResult.OK)
71+
Configuration.SetPassword(dlg.password);
72+
else
73+
return;
74+
}
7375
try_times += 1;
7476
}
7577
#endif
7678
_controller = new ShadowsocksController();
77-
79+
HostMap.Instance().LoadHostFile();
7880
#if !_CONSOLE
7981
_viewController = new MenuViewController(_controller);
8082
#endif

0 commit comments

Comments
 (0)