work with empty header
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
"Endpoints": [
|
||||
{
|
||||
"port": 80,
|
||||
"DnsName": "mywebsite.com",
|
||||
"DnsName": "",
|
||||
"Secure": false
|
||||
}
|
||||
]
|
||||
|
||||
@@ -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() {
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<!-- Read this before publishing packages to chocolatey.org: https://github.com/chocolatey/chocolatey/wiki/CreatePackages -->
|
||||
<id>quikpak</id>
|
||||
<title>QuikPak (Install)</title>
|
||||
<version>0.2.0</version>
|
||||
<version>0.3.0</version>
|
||||
<authors>Tommy Parnell</authors>
|
||||
<owners>Tommy Parnell</owners>
|
||||
<summary>quickly pack directory's as IIS websites</summary>
|
||||
|
||||
Reference in New Issue
Block a user