diff options
| -rw-r--r-- | modules/caddyhttp/map/map.go | 11 | 
1 files changed, 1 insertions, 10 deletions
diff --git a/modules/caddyhttp/map/map.go b/modules/caddyhttp/map/map.go index b972534..fbd1e40 100644 --- a/modules/caddyhttp/map/map.go +++ b/modules/caddyhttp/map/map.go @@ -109,22 +109,13 @@ func (h *Handler) Validate() error {  		}  		seen[input] = i -		// prevent infinite recursion -		for _, out := range m.Outputs { -			for _, dest := range h.Destinations { -				if strings.Contains(caddy.ToString(out), dest) || -					strings.Contains(m.Input, dest) { -					return fmt.Errorf("mapping %d requires value of {%s} to define value of {%s}: infinite recursion", i, dest, dest) -				} -			} -		} -  		// ensure mappings have 1:1 output-to-destination correspondence  		nOut := len(m.Outputs)  		if nOut != nDest {  			return fmt.Errorf("mapping %d has %d outputs but there are %d destinations defined", i, nOut, nDest)  		}  	} +  	return nil  }  | 
