mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-06-27 05:23:13 +00:00
Fix
This commit is contained in:
@ -790,11 +790,13 @@ namespace Esiur.Net.IIP
|
||||
if (Instance.Attributes.ContainsKey("username")
|
||||
&& Instance.Attributes.ContainsKey("password"))
|
||||
{
|
||||
var hostname = String.Join("://", Instance.Name.Split(new string[] { "://" }, StringSplitOptions.None).Skip(1)).Split('/')[0];
|
||||
//var hostname = String.Join("://", Instance.Name.Split(new string[] { "://" }, StringSplitOptions.None).Skip(1)).Split('/')[0];
|
||||
// assign domain from hostname if not provided
|
||||
|
||||
var address = hostname.Split(':')[0];
|
||||
var port = ushort.Parse(hostname.Split(':')[1]);
|
||||
var host = Instance.Name.Split(':');
|
||||
|
||||
var address = host[0];// hostname.Split(':')[0];
|
||||
var port = ushort.Parse(host[1]);// hostname.Split(':')[1]);
|
||||
var username = Instance.Attributes["username"].ToString();
|
||||
|
||||
var domain = Instance.Attributes.ContainsKey("domain") ? Instance.Attributes["domain"].ToString() : address;
|
||||
|
@ -1153,7 +1153,7 @@ namespace Esiur.Net.IIP
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
SendError(ErrorType.Exception, callback, 0, ex.ToString());
|
||||
SendError(ErrorType.Exception, callback, 0, ex.InnerException.ToString());
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user