Skip to content

Commit

Permalink
Merge pull request #459 from TrekkieCoder/main
Browse files Browse the repository at this point in the history
PR: udp ep probe fixes
  • Loading branch information
UltraInstinct14 authored Dec 11, 2023
2 parents 0e94b9c + eabb138 commit c414baf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
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
github.com/loxilb-io/loxilib v0.8.9-0.20231211082246-dc641488569f
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
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/loxilb-io/loxilib v0.8.8 h1:nW6RvLXDQxr5Pe2Ygg7qyYm4QG5y5cG+/jQ4m/DckP4=
github.com/loxilb-io/loxilib v0.8.8/go.mod h1:LoQCxBz+N0fO9rGwRmPHrQPHol/jUf4MNpph63Cydkg=
github.com/loxilb-io/loxilib v0.8.9-0.20231211082246-dc641488569f h1:q745LqB2G97bOpf6MCa34VyNJEuvVx4rTFVut3kz9oo=
github.com/loxilb-io/loxilib v0.8.9-0.20231211082246-dc641488569f/go.mod h1:LoQCxBz+N0fO9rGwRmPHrQPHol/jUf4MNpph63Cydkg=
github.com/loxilb-io/sctp v0.0.0-20230519081703-6d1baec82fd4 h1:oDc2lsbfuQEcVP3k+Pw4v6Xdm3t4M9vBc1Y9egszv6g=
github.com/loxilb-io/sctp v0.0.0-20230519081703-6d1baec82fd4/go.mod h1:1a6hv8ISVQhnW5IVpW9o+OL6BAFlWiVpC0O4d19g+wQ=
github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc=
Expand Down
10 changes: 7 additions & 3 deletions loxinet/rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -1729,9 +1729,13 @@ func (R *RuleH) AddEPHost(apiCall bool, hostName string, name string, args epHos
if apiCall != true {
ep.ruleCount = 1
}
ep.hID = R.lepHID % MaxEndPointCheckers
//ep.sT = time.Now()
R.lepHID++
if args.probeType != HostProbeConnectUDP {
ep.hID = R.lepHID % MaxEndPointCheckers
//ep.sT = time.Now()
R.lepHID++
} else {
ep.hID = 0
}

R.epMap[epKey] = ep

Expand Down

0 comments on commit c414baf

Please sign in to comment.