diff --git a/tyk_reverse_proxy_clone.go b/tyk_reverse_proxy_clone.go index e789804dd09..561a5774097 100644 --- a/tyk_reverse_proxy_clone.go +++ b/tyk_reverse_proxy_clone.go @@ -20,6 +20,7 @@ import ( "strconv" "strings" "sync" + "errors" "time" "github.com/TykTechnologies/tykcommon" @@ -41,6 +42,12 @@ func GetURLFromService(spec *APISpec) (*tykcommon.HostList, error) { spec.HasRun = true spec.ServiceRefreshInProgress = false log.Warning("[PROXY][SD] Service Discovery returned empty host list! Returning last good set.") + + if spec.LastGoodHostList == nil { + log.Warning("[PROXY][SD] Last good host list is nil, returning empty set.") + spec.LastGoodHostList = tykcommon.NewHostList() + } + return spec.LastGoodHostList, nil } diff --git a/version.go b/version.go index c686a6e4eee..32250be1683 100644 --- a/version.go +++ b/version.go @@ -1,2 +1,2 @@ package main -var VERSION string = "v2.3.0.46" +var VERSION string = "v2.3.0.47"