public void SetMatchHost(string newHost, int port, bool https)
{
if (this.matchMaker == null)
{
this.matchMaker = base.gameObject.AddComponent<NetworkMatch>();
}
if (newHost == "127.0.0.1")
{
newHost = "localhost";
}
string str = "http://";
if (https)
{
str = "https://";
}
if (newHost.StartsWith("http://"))
{
newHost = newHost.Replace("http://", "");
}
if (newHost.StartsWith("https://"))
{
newHost = newHost.Replace("https://", "");
}
this.m_MatchHost = newHost;
this.m_MatchPort = port;
object[] objArray1 = new object[] { str, this.m_MatchHost, ":", this.m_MatchPort };
string uriString = string.Concat(objArray1);
if (LogFilter.logDebug)
{
Debug.Log("SetMatchHost:" + uriString);
}
this.matchMaker.baseUri = new Uri(uriString);
}