From 95d944613bffce1cee3783568ae229e116168ba4 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Sun, 29 Dec 2019 13:12:52 -0700 Subject: Export Replacer and use concrete type instead of interface The interface was only making things difficult; a concrete pointer is probably best. --- modules/caddyhttp/reverseproxy/hosts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/caddyhttp/reverseproxy/hosts.go') diff --git a/modules/caddyhttp/reverseproxy/hosts.go b/modules/caddyhttp/reverseproxy/hosts.go index e7c61fb..6e25c66 100644 --- a/modules/caddyhttp/reverseproxy/hosts.go +++ b/modules/caddyhttp/reverseproxy/hosts.go @@ -204,7 +204,7 @@ func (di DialInfo) String() string { // fillDialInfo returns a filled DialInfo for the given upstream, using // the given Replacer. Note that the returned value is not a pointer. -func fillDialInfo(upstream *Upstream, repl caddy.Replacer) (DialInfo, error) { +func fillDialInfo(upstream *Upstream, repl *caddy.Replacer) (DialInfo, error) { dial := repl.ReplaceAll(upstream.Dial, "") addr, err := caddy.ParseNetworkAddress(dial) if err != nil { -- cgit v1.2.3