Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,18 @@ public static IPAddress IpOutput(string IpString)
{
if (IpString.ToLower() == LocalHost)
{
string[] IpStrings = BasisNetworkIPResolve.ResolveLocahost(IpString);
string[] IpStrings = BasisNetworkIPResolve.ResolveLocalhost(IpString);
IpString = IpStrings[0];
}
return IPAddress.Parse(IpString);
}
public static string[] ResolveLocahost(string localhost)
public static string[] ResolveLocalhost(string localhost)
{
string[] addresses = ResolveLocalhostToIP(localhost);
if (addresses == null)
{
BasisDebug.LogError("Failed to resolve localhost to IP address.");
throw new System.IO.IOException("Failed to resolve localhost to IP address.");
}
return addresses;
}
Expand Down
Loading