Commit 932b86e 1 parent 54e2378 commit 932b86e Copy full SHA for 932b86e
File tree 2 files changed +9
-7
lines changed
2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ public class UpdateChecker
21
21
22
22
public const string Name = "ShadowsocksR" ;
23
23
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 " ;
25
25
#if ! _DOTNET_4_0
26
26
public const string NetVer = "2.0" ;
27
27
#elif ! _CONSOLE
Original file line number Diff line number Diff line change @@ -65,16 +65,18 @@ static void Main(string[] args)
65
65
{
66
66
if ( try_times >= 5 )
67
67
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
+ }
73
75
try_times += 1 ;
74
76
}
75
77
#endif
76
78
_controller = new ShadowsocksController ( ) ;
77
-
79
+ HostMap . Instance ( ) . LoadHostFile ( ) ;
78
80
#if ! _CONSOLE
79
81
_viewController = new MenuViewController ( _controller ) ;
80
82
#endif
You can’t perform that action at this time.
0 commit comments