diff options
Diffstat (limited to 'modules/caddyhttp')
-rw-r--r-- | modules/caddyhttp/caddyhttp.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/caddyhttp.go b/modules/caddyhttp/caddyhttp.go index 7830828..064a963 100644 --- a/modules/caddyhttp/caddyhttp.go +++ b/modules/caddyhttp/caddyhttp.go @@ -187,7 +187,7 @@ func (app *App) Start() error { if err != nil { return fmt.Errorf("%s: parsing listen address '%s': %v", srvName, lnAddr, err) } - for i := uint(0); i <= listenAddr.PortRangeSize(); i++ { + for i := uint(0); i < listenAddr.PortRangeSize(); i++ { hostport := listenAddr.JoinHostPort(i) ln, err := caddy.Listen(listenAddr.Network, hostport) if err != nil { |