aboutsummaryrefslogtreecommitdiffhomepage
path: root/caddyconfig/httpcaddyfile/addresses.go
diff options
context:
space:
mode:
authorMatthew Holt <[email protected]>2019-10-03 16:00:41 -0600
committerMatthew Holt <[email protected]>2019-10-03 16:00:41 -0600
commitc11e3bffd698cfb1e19a21097ff4a65cf10e28b0 (patch)
tree01eb0f52cd3276669677ea32d1859ff0d1398669 /caddyconfig/httpcaddyfile/addresses.go
parentf29a9eee0d062d7fb975d8779db4ea8a07d26f7d (diff)
downloadcaddy-c11e3bffd698cfb1e19a21097ff4a65cf10e28b0.tar.gz
caddy-c11e3bffd698cfb1e19a21097ff4a65cf10e28b0.zip
Add file-server and reverse-proxy subcommands
Diffstat (limited to 'caddyconfig/httpcaddyfile/addresses.go')
-rw-r--r--caddyconfig/httpcaddyfile/addresses.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/caddyconfig/httpcaddyfile/addresses.go b/caddyconfig/httpcaddyfile/addresses.go
index 5708783ec..deb27c2f1 100644
--- a/caddyconfig/httpcaddyfile/addresses.go
+++ b/caddyconfig/httpcaddyfile/addresses.go
@@ -161,7 +161,7 @@ func (st *ServerType) listenerAddrsForServerBlockKey(sblock serverBlock, key str
}
addr = addr.Normalize()
- lnPort := defaultPort
+ lnPort := DefaultPort
if addr.Port != "" {
// port explicitly defined
lnPort = addr.Port
@@ -327,6 +327,8 @@ func (a Address) Key() string {
}
const (
- defaultPort = "2015"
+ // DefaultPort is the default port to use.
+ DefaultPort = "2015"
+
caseSensitivePath = false // TODO: Used?
)