Skip to content

Commit 96399cf

Browse files
committed
Support routing forge clients
1 parent 5875b0d commit 96399cf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/routes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func (r *routesImpl) FindBackendForServerAddress(serverAddress string) string {
129129
r.RLock()
130130
defer r.RUnlock()
131131

132-
addressParts := strings.Split(serverAddress, `\x00`)
132+
addressParts := strings.Split(serverAddress, "\x00")
133133

134134
if r.mappings == nil {
135135
return r.defaultRoute

server/routes_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func Test_routesImpl_FindBackendForServerAddress(t *testing.T) {
3434
serverAddress: "forge.my.domain", backend: "backend:25566",
3535
},
3636
args: args{
37-
serverAddress: `forge.my.domain\x00FML2\x00`,
37+
serverAddress: "forge.my.domain\x00FML2\x00",
3838
},
3939
want: "backend:25566",
4040
},

0 commit comments

Comments
 (0)