Horms wanted us to know:
>> The following allows it to do a udp check for the udp protocol and a tcp
>> check for the tcp protocol (for the check dns sub only). I'm not sure
>> if you need to modify the regex to be more specific.
>Can I clarify that if its a tcp check $res->usevc(1) shuold
>be called, and other wise it wouldn't. If so I'd propose something like.
Yes, exactly.
> if ($$v{"protocol"} eq "tcp") {
> $res->usevc(1);
> }
>Can you let me know if that works, it would be good to get this fixed,
>sounds like its been there forever.
It works for me. I didn't notice that you did "eq" checks for protocol
in other places in your code or I would have modeled my suggestion the
same way. Thank you for looking at it.
--
Regards... Todd
when you shoot yourself in the foot, just because you are so neurally
broken that the signal takes years to register in your brain, it does
not mean that your foot does not have a hole in it. --Randy Bush
Linux kernel 2.6.12-12mdksmp 3 users, load average: 1.10, 1.11, 1.14
|