Add firewall rules always and also to private section (won't work otherwise)

This commit is contained in:
Flamefire committed 2014-02-15 14:15:10 +01:00
1 parent 14db90b91c
commit a677a1ad8b
3 files changed
+50 -36

No files matched your search

+2 -2
View File
@@ -92,7 +92,7 @@ namespace ServerLib
#region server control
private void _Init(int port, bool encrypted)
{
string hostname = Dns.GetHostName();
string hostname = GetLocalAddress();
string protocol = (encrypted) ? "https" : "http";
_BaseAddress = new Uri(protocol + "://" + hostname + ":" + port + "/");
_Encrypted = encrypted;
@@ -121,7 +121,7 @@ namespace ServerLib
smb.MetadataExporter.PolicyVersion = PolicyVersion.Policy15;
smb.HttpGetEnabled = true;
host.Description.Behaviors.Add(smb);*/
_RegisterUrlAndCert(_BaseAddress.Port);
_Host.Open();
}
catch (CommunicationException e)