Fixes #96 - Also added message if server is not running.
This commit is contained in:
1 parent
70f566682f
commit
7bf11363fe
5 files changed
+73
-11
No files matched your search
@@ -203,9 +203,9 @@ namespace ServerLib
|
||||
_Init(port, encrypted);
|
||||
}
|
||||
|
||||
public static string GetLocalAddress()
|
||||
public string GetBaseAddress()
|
||||
{
|
||||
return Dns.GetHostName();
|
||||
return _BaseAddress.AbsoluteUri;
|
||||
|
||||
/*IPAddress[] ips = Dns.GetHostAddresses(Dns.GetHostName());
|
||||
foreach (IPAddress ip in ips)
|
||||
@@ -216,6 +216,11 @@ namespace ServerLib
|
||||
return "";*/
|
||||
}
|
||||
|
||||
public bool IsRunning()
|
||||
{
|
||||
return _Host.State == CommunicationState.Opened;
|
||||
}
|
||||
|
||||
#region server control
|
||||
|
||||
private void _Init(int port, bool encrypted)
|
||||
|
||||
Reference in new issue
Block a user