Skip to content

Commit 5129d8d

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 5f8e85f commit 5129d8d

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
@@ -93,7 +93,7 @@ commit-policy:
9393
rules:
9494
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
9595
image:
96-
name: $CI_REGISTRY_GO/commit-check:5.0.2
96+
name: $CI_REGISTRY_GO/commit-check:5.1.1
9797
entrypoint: [""]
9898
tags:
9999
- go

pkg/haproxy/api/runtime.go

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

0 commit comments

Comments
 (0)