Fixing toLower typo from previous commit

This commit is contained in:
Geoff Bourne
2019-06-25 14:15:59 -05:00
parent e2cd062265
commit cf90f15bc2
3 changed files with 10 additions and 4 deletions
+3 -3
View File
@@ -131,13 +131,13 @@ func (r *routesImpl) FindBackendForServerAddress(serverAddress string) string {
addressParts := strings.Split(serverAddress, "\x00")
address := strings.toLower(addressParts[0])
address := strings.ToLower(addressParts[0])
if r.mappings == nil {
return r.defaultRoute
} else {
if route, exists := r.mappings[addressParts[0]]; exists {
if route, exists := r.mappings[address]; exists {
return route
} else {
return r.defaultRoute
@@ -173,7 +173,7 @@ func (r *routesImpl) CreateMapping(serverAddress string, backend string) {
r.Lock()
defer r.Unlock()
serverAddress = strings.toLower(serverAddress)
serverAddress = strings.ToLower(serverAddress)
logrus.WithFields(logrus.Fields{
"serverAddress": serverAddress,