Fix build (sigh)

This commit is contained in:
Matthew Holt 2019-09-10 07:15:36 -06:00
parent 44b7ce9850
commit d67d8cf5a8
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5

View file

@ -187,7 +187,7 @@ func (s *Server) listenersUseAnyPortOtherThan(otherPort int) bool {
// listeners in s that use otherPort.
func (s *Server) listenersIncludePort(otherPort int) bool {
for _, lnAddr := range s.Listen {
_, addrs, err := caddy.ParseListenAddr(lnAddr)
_, addrs, err := caddy.ParseNetworkAddress(lnAddr)
if err == nil {
for _, a := range addrs {
_, port, err := net.SplitHostPort(a)