mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-26 13:43:47 +03:00
Fix build (sigh)
This commit is contained in:
parent
44b7ce9850
commit
d67d8cf5a8
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue