diff --git a/QuikPak/Config.json b/QuikPak/Config.json index 3e224ca..5f5b239 100644 --- a/QuikPak/Config.json +++ b/QuikPak/Config.json @@ -6,7 +6,7 @@ "Endpoints": [ { "port": 80, - "DnsName": "mywebsite.com", + "DnsName": "", "Secure": false } ] diff --git a/QuikPak/Program.cs b/QuikPak/Program.cs index ace9933..0f88d06 100644 --- a/QuikPak/Program.cs +++ b/QuikPak/Program.cs @@ -29,13 +29,17 @@ namespace QuikPak foreach(var Endpoint in config.Endpoints) { - addresses.Add(new WebSite.WebAddress() { - Attributes = new Attributes() + var attr = new Attributes() { { "Port", Endpoint.Port }, - {"Header", Endpoint.DnsName }, { "Secure", Endpoint.Secure? "yes": "no" } - } + }; + if(!string.IsNullOrWhiteSpace(Endpoint.DnsName)) + { + attr["Header"] = Endpoint.DnsName; + } + addresses.Add(new WebSite.WebAddress() { + }); } diff --git a/QuikPak/choco/quikpak.nuspec b/QuikPak/choco/quikpak.nuspec index 44bce2f..bbdf041 100644 --- a/QuikPak/choco/quikpak.nuspec +++ b/QuikPak/choco/quikpak.nuspec @@ -5,7 +5,7 @@ quikpak QuikPak (Install) - 0.2.0 + 0.3.0 Tommy Parnell Tommy Parnell quickly pack directory's as IIS websites