Skip to content

Commit

Permalink
Fix port issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
krisdb2009 committed Apr 25, 2021
1 parent 8b31a37 commit 3b3e4cb
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 335 deletions.
4 changes: 2 additions & 2 deletions GlobalParameters/GlobalAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
[assembly: AssemblyMetadata("Website", "https://github.com/belowaverage-org/ImmediateAccess")]
[assembly: ComVisible(false)]
[assembly: Guid("0ec7da0d-b034-4f5a-9490-8242a0685090")]
[assembly: AssemblyVersion("1.0.0.1")]
[assembly: AssemblyFileVersion("1.0.0.1")]
[assembly: AssemblyVersion("1.0.0.2")]
[assembly: AssemblyFileVersion("1.0.0.2")]
3 changes: 2 additions & 1 deletion ImmediateAccess/Classes/TestNetwork.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ public static async Task<bool> SelectOnlineVpnProfile()
{
ManagementObject vpnStatus = await VpnStatus.Get(vpnProfile);
if (vpnStatus == null) continue;
Task<bool> ping = VpnServerPing((string)vpnStatus.GetPropertyValue("ServerAddress"));
string[] host = ((string)vpnStatus.GetPropertyValue("ServerAddress")).Split(':'); //Remove port number.
Task<bool> ping = VpnServerPing(host[0]);
bool finished = ping.Wait((int)PolicyReader.Policies["VpnServerPingTimeoutMS"]);
if (finished && await ping)
{
Expand Down
Loading

0 comments on commit 3b3e4cb

Please sign in to comment.