Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 14, 05:15 UTC
Fix build (sigh)
Matthew Holt committed
Sep 10, 2019 at 07:15 UTC
d67d8cf5a88d3635148b2e58205c9d3bb630243c
1 file changed
+1
-1
modules/caddyhttp/server.go
+1
-1
@@ -187,7 +187,7 @@ func (s *Server) listenersUseAnyPortOtherThan(otherPort int) bool {
187
// listeners in s that use otherPort.
188
func (s *Server) listenersIncludePort(otherPort int) bool {
189
for _, lnAddr := range s.Listen {
190
- _, addrs, err := caddy.ParseListenAddr(lnAddr)
190
+ _, addrs, err := caddy.ParseNetworkAddress(lnAddr)
191
if err == nil {
192
for _, a := range addrs {
193
_, port, err := net.SplitHostPort(a)