Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
fix a bug that server ports are reset on starts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cenmrev committed Dec 23, 2016
1 parent 6407259 commit 18df17a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions V2RayW/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ static void Main()

//Properties.Settings.Default.Reset();
Properties.Settings.Default.Upgrade();
//MessageBox.Show(Properties.Settings.Default.profilesStr);
var dProfilesStrArray = Properties.Settings.Default.profilesStr.Split('\t');
foreach (string pstr in dProfilesStrArray)
{
Expand All @@ -85,6 +86,7 @@ static void Main()
var p = new Profile();
dynamic dp = JObject.Parse(pstr);
p.address = dp.address;
p.port = dp.port;
p.allowPassive = dp.allowPassive;
p.alterId = dp.alterId;
p.network = dp.network;
Expand Down

0 comments on commit 18df17a

Please sign in to comment.