Skip to content

Commit 10f5833

Browse files
committed
renamed var for orchestrator proxy port
1 parent 37893d3 commit 10f5833

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

packages/client-proxy/main.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ import (
2828
)
2929

3030
const (
31-
ServiceName = "client-proxy"
32-
dnsServer = "api.service.consul:5353"
33-
healthCheckPort = 3001
34-
port = 3002
35-
sandboxPort = 3003 // legacy session proxy port
36-
sandboxProxyPort = 5007 // orchestrator proxy port
37-
maxRetries = 3
31+
ServiceName = "client-proxy"
32+
dnsServer = "api.service.consul:5353"
33+
healthCheckPort = 3001
34+
port = 3002
35+
sandboxPort = 3003 // legacy session proxy port
36+
orchestratorProxyPort = 5007 // orchestrator proxy port
37+
maxRetries = 3
3838
)
3939

4040
var commitSHA string
@@ -112,7 +112,7 @@ func proxyHandler(transport *http.Transport) func(w http.ResponseWriter, r *http
112112
zap.L().Debug("Proxying request", zap.String("sandbox_id", sandboxID), zap.String("node", node))
113113
targetUrl := &url.URL{
114114
Scheme: "http",
115-
Host: fmt.Sprintf("%s:%d", node, sandboxProxyPort),
115+
Host: fmt.Sprintf("%s:%d", node, orchestratorProxyPort),
116116
}
117117

118118
// Proxy the request

0 commit comments

Comments
 (0)