Skip to content

Commit

Permalink
Merge pull request #23 from TrekkieCoder/main
Browse files Browse the repository at this point in the history
Use given hint to select laddr in case of tcp probes
  • Loading branch information
TrekkieCoder authored Aug 26, 2024
2 parents 6929c7b + 53bcf7b commit 1249b31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serviceprobe.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func L4ServiceProber(sType string, sName string, sHint, req, resp string) bool {
}

var c net.Conn
if sHint == "" {
if sHint == "" || sType == "udp" {
c, err = net.DialTimeout(sType, sName, timeout)
} else {
dialer := &net.Dialer{
Expand Down

0 comments on commit 1249b31

Please sign in to comment.