File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments