Skip to content

Commit 222d659

Browse files
committed
MINOR: when we disable server, set the port to 1
Due to precaution, it's safer to change the port when disabling the server to a port number that is not likely to be used. Co-authored-by: Zlatko Bratkovic<[email protected]>
1 parent d2b47b4 commit 222d659

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ lint-commit-msg:
9595
rules:
9696
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
9797
image:
98-
name: $CI_REGISTRY_GO/commit-check:3.0.0
98+
name: $CI_REGISTRY_GO/commit-check:5.1.1
9999
entrypoint: [""]
100100
tags:
101101
- go

pkg/haproxy/api/runtime.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ func (c *clientNative) SyncBackendSrvs(backend *store.RuntimeBackend, portUpdate
212212
BackendName: backend.Name,
213213
ServerName: srv.Name,
214214
IP: "127.0.0.1",
215-
Port: 0,
215+
Port: 1,
216216
State: "maint",
217217
})
218218
} else {

0 commit comments

Comments
 (0)