This improves the logic in enrichTargets to account for any scheme, be that http, https, tcp whatever floats your boat, as long as it's a valid url we're happy.
Changes
Parse the url into a net.Url so we grab the dns name in an easier way for the dns check.
For additional information look at the commits.
Tests done
I've tested it with the latency and dns check enabled using mixed set of targets configured with HTTP and HTTPS. Seemed to work fine
Motivation
Closes #148
This improves the logic in
enrichTargets
to account for any scheme, be that http, https, tcp whatever floats your boat, as long as it's a valid url we're happy.Changes
Parse the url into a
net.Url
so we grab the dns name in an easier way for the dns check.For additional information look at the commits.
Tests done
I've tested it with the latency and dns check enabled using mixed set of targets configured with HTTP and HTTPS. Seemed to work fine
TODO