Skip to content

Commit

Permalink
Merge branch 'patch/v2.2.0.4' into experiment/reloader
Browse files Browse the repository at this point in the history
  • Loading branch information
lonelycode committed Aug 23, 2016
2 parents 6cce637 + 0a3c6ce commit bd1f486
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ test.*.conf
*.mprof
apps/test.json
logs
live_hybrid.conf
tyk.zeroconf.conf
lint_results.txt
build/
test_apps/
Expand Down
11 changes: 10 additions & 1 deletion tyk_reverse_proxy_clone.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,16 @@ func GetNextTarget(targetData interface{}, spec *APISpec, tryCount int) string {
log.Debug("[PROXY] [LOAD BALANCING] Load balancer enabled, getting upstream target")
// Use a list
spec.RoundRobin.SetMax(targetData)
td := *targetData.(*[]string)
var td []string

switch targetData.(type) {
case *[]string:
td = *targetData.(*[]string)
case []string:
td = targetData.([]string)
}

//td := *targetData.(*[]string)

pos := spec.RoundRobin.GetPos()
if pos > (len(td) - 1) {
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package main

var VERSION string = "v2.2.0.2"
var VERSION string = "v2.2.0.4"

0 comments on commit bd1f486

Please sign in to comment.