The socks5 factory always returns a DialContext capable dialer. We just need to cast to obtain such a dialer. Also, the code will use the DialContext if passed a dialer that implements DialContext. Write a test that proves my point. Part of https://github.com/ooni/probe/issues/1591.
Directory github.com/ooni/probe-cli/internal
This directory contains private Go packages.