Oops. Forgot a try-catch on the last commit.
parent
26f99de45d
commit
4db9373b29
|
@ -83,8 +83,12 @@ namespace OpenSim.Framework
|
||||||
public static string ServerURI(string uri)
|
public static string ServerURI(string uri)
|
||||||
{
|
{
|
||||||
// Get rid of eventual slashes at the end
|
// Get rid of eventual slashes at the end
|
||||||
if (uri.EndsWith("/"))
|
try
|
||||||
uri = uri.Substring(0, uri.Length - 1);
|
{
|
||||||
|
if (uri.EndsWith("/"))
|
||||||
|
uri = uri.Substring(0, uri.Length - 1);
|
||||||
|
}
|
||||||
|
catch { }
|
||||||
|
|
||||||
IPAddress ipaddr1 = null;
|
IPAddress ipaddr1 = null;
|
||||||
string port1 = "";
|
string port1 = "";
|
||||||
|
|
Loading…
Reference in New Issue