Skip to content

Commit

Permalink
More improvements to liveness check
Browse files Browse the repository at this point in the history
  • Loading branch information
TrekkieCoder committed May 31, 2023
1 parent ec84b69 commit 3186eb4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require (
github.com/go-openapi/swag v0.22.3
github.com/go-openapi/validate v0.22.0
github.com/jessevdk/go-flags v1.5.0
github.com/loxilb-io/loxilib v0.8.8-0.20230522072824-40657d491e9b
github.com/loxilb-io/loxilib v0.8.8-0.20230531161727-0b99321ae61d
github.com/osrg/gobgp/v3 v3.5.0
github.com/prometheus-community/pro-bing v0.1.0
github.com/prometheus/client_model v0.3.0
Expand Down
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,10 @@ github.com/loxilb-io/loxilib v0.8.8-0.20230522072540-4ba9ddf4efcf h1:342+g1s7I27
github.com/loxilb-io/loxilib v0.8.8-0.20230522072540-4ba9ddf4efcf/go.mod h1:LoQCxBz+N0fO9rGwRmPHrQPHol/jUf4MNpph63Cydkg=
github.com/loxilb-io/loxilib v0.8.8-0.20230522072824-40657d491e9b h1:CWgBppsB/keRY38bqOwObd4+pdc2O2e38zUTIb+kCX8=
github.com/loxilb-io/loxilib v0.8.8-0.20230522072824-40657d491e9b/go.mod h1:LoQCxBz+N0fO9rGwRmPHrQPHol/jUf4MNpph63Cydkg=
github.com/loxilb-io/loxilib v0.8.8-0.20230531161000-c08bcd884fea h1:5D0q0JN4sxd3y0DjnM8gt3YzCeu3JzdpHMI22ngHpVg=
github.com/loxilb-io/loxilib v0.8.8-0.20230531161000-c08bcd884fea/go.mod h1:LoQCxBz+N0fO9rGwRmPHrQPHol/jUf4MNpph63Cydkg=
github.com/loxilb-io/loxilib v0.8.8-0.20230531161727-0b99321ae61d h1:LzQJ4F0FsEBzLPsETfC9Yu5MNhOcSle/ZWGhBQd8v78=
github.com/loxilb-io/loxilib v0.8.8-0.20230531161727-0b99321ae61d/go.mod h1:LoQCxBz+N0fO9rGwRmPHrQPHol/jUf4MNpph63Cydkg=
github.com/loxilb-io/sctp v0.0.0-20230512061258-63a8bc8f1b80 h1:rYO3BYcHt0ILY0sOeygtpUEEFsNS8KZBTbuEIW2foLk=
github.com/loxilb-io/sctp v0.0.0-20230512061258-63a8bc8f1b80/go.mod h1:1a6hv8ISVQhnW5IVpW9o+OL6BAFlWiVpC0O4d19g+wQ=
github.com/loxilb-io/sctp v0.0.0-20230512152123-70e9c76eb88a h1:ASVCk3Mk5n9fNJYJm1+QF9bsFCHysudzE8sj5nhj5P4=
Expand Down
4 changes: 4 additions & 0 deletions loxinet/rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -1620,6 +1620,10 @@ func (R *RuleH) epCheckNow(ep *epHost) {
}

sName := fmt.Sprintf("%s:%d", ep.hostName, ep.opts.probePort)
if tk.IsNetIPv6(ep.hostName) {
sName = fmt.Sprintf("[%s]:%d", ep.hostName, ep.opts.probePort)
}

if ep.opts.probeType == HostProbeConnectTcp ||
ep.opts.probeType == HostProbeConnectUdp ||
ep.opts.probeType == HostProbeConnectSctp {
Expand Down

0 comments on commit 3186eb4

Please sign in to comment.