fix server index problem
This commit is contained in:
@@ -55,6 +55,13 @@ namespace Shadowsocks.Model
|
||||
{
|
||||
config.localPort = 1080;
|
||||
}
|
||||
if (config.index == -1)
|
||||
{
|
||||
if (config.strategy == null)
|
||||
{
|
||||
config.index = 0;
|
||||
}
|
||||
}
|
||||
return config;
|
||||
}
|
||||
catch (Exception e)
|
||||
@@ -86,6 +93,13 @@ namespace Shadowsocks.Model
|
||||
{
|
||||
config.index = -1;
|
||||
}
|
||||
if (config.index == -1)
|
||||
{
|
||||
if (config.strategy == null)
|
||||
{
|
||||
config.index = 0;
|
||||
}
|
||||
}
|
||||
config.isDefault = false;
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user