diff options
Diffstat (limited to 'middleware/proxy/lookup.go')
-rw-r--r-- | middleware/proxy/lookup.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/middleware/proxy/lookup.go b/middleware/proxy/lookup.go index e97741fb5..370307cc1 100644 --- a/middleware/proxy/lookup.go +++ b/middleware/proxy/lookup.go @@ -21,6 +21,8 @@ func NewLookup(hosts []string) Proxy { func NewLookupWithOption(hosts []string, opts Options) Proxy { p := Proxy{Next: nil} + // TODO(miek): this needs to be unified with upstream.go's NewStaticUpstreams, caddy uses NewHost + // we should copy/make something similar. upstream := &staticUpstream{ from: ".", Hosts: make([]*UpstreamHost, len(hosts)), |