Skip to content

Commit

Permalink
Fixed ServerIP with Port
Browse files Browse the repository at this point in the history
  • Loading branch information
MeTonaTOR committed Jul 24, 2017
1 parent 92993d5 commit 2a198d0
Show file tree
Hide file tree
Showing 18 changed files with 29 additions and 1 deletion.
22 changes: 22 additions & 0 deletions InstantGameLauncher.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26430.16
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "InstantGameLauncher", "InstantGameLauncher\InstantGameLauncher.csproj", "{728B6BAB-E56B-4384-9C95-E3BB595BA01A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{728B6BAB-E56B-4384-9C95-E3BB595BA01A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{728B6BAB-E56B-4384-9C95-E3BB595BA01A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{728B6BAB-E56B-4384-9C95-E3BB595BA01A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{728B6BAB-E56B-4384-9C95-E3BB595BA01A}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 7 additions & 1 deletion Program.cs → InstantGameLauncher/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,13 @@ static void Main() {
}

Uri Server_Address = new Uri(Config.Read("ServerAddress", "Configuration"));
ServerAddress = Server_Address.Scheme + "://" + Server_Address.Host + "/soapbox-race-core/Engine.svc";

if(Server_Address.Port == 80) {
ServerAddress = Server_Address.Scheme + "://" + Server_Address.Host + "/soapbox-race-core/Engine.svc";
} else {
ServerAddress = Server_Address.Scheme + "://" + Server_Address.Host + ":" + Server_Address.Port + "/soapbox-race-core/Engine.svc";
}

Username = Config.Read("Username", "Configuration");
Password = Config.Read("Password", "Configuration");

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 2a198d0

Please sign in to comment.