From 96399cfd40ff4ec5c3a2092fe174e14e8385be84 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Sun, 28 Apr 2019 17:02:21 -0500 Subject: [PATCH] Support routing forge clients --- server/routes.go | 2 +- server/routes_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/routes.go b/server/routes.go index 2cac66b..1e7a464 100644 --- a/server/routes.go +++ b/server/routes.go @@ -129,7 +129,7 @@ func (r *routesImpl) FindBackendForServerAddress(serverAddress string) string { r.RLock() defer r.RUnlock() - addressParts := strings.Split(serverAddress, `\x00`) + addressParts := strings.Split(serverAddress, "\x00") if r.mappings == nil { return r.defaultRoute diff --git a/server/routes_test.go b/server/routes_test.go index 8b7fae9..aecc589 100644 --- a/server/routes_test.go +++ b/server/routes_test.go @@ -34,7 +34,7 @@ func Test_routesImpl_FindBackendForServerAddress(t *testing.T) { serverAddress: "forge.my.domain", backend: "backend:25566", }, args: args{ - serverAddress: `forge.my.domain\x00FML2\x00`, + serverAddress: "forge.my.domain\x00FML2\x00", }, want: "backend:25566", },