ooni-probe-cli/internal/engine/netx/dialer
Simone Basso b7a6dbe47b
refactor(netx/dialer): we can simplify the proxy (#371)
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.
2021-06-09 07:11:31 +02:00
..
bytecounter_test.go refactor(netx): move dialer's mockable types in mockablex (#368) 2021-06-08 23:59:30 +02:00
bytecounter.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
dialer.go refactor(netx): dialer does not use legacy/netx anymore (#370) 2021-06-09 00:29:40 +02:00
dns_test.go refactor(netx): towards removing connid, dialid, etc (#369) 2021-06-09 00:15:33 +02:00
dns.go refactor(netx): dialer does not use legacy/netx anymore (#370) 2021-06-09 00:29:40 +02:00
errorwrapper_test.go refactor(netx): dialer does not use legacy/netx anymore (#370) 2021-06-09 00:29:40 +02:00
errorwrapper.go refactor(netx): dialer does not use legacy/netx anymore (#370) 2021-06-09 00:29:40 +02:00
integration_test.go refactor(netx): extract tlsdialer from dialer 2021-06-08 12:52:15 +02:00
logging_test.go refactor(netx): move dialer's mockable types in mockablex (#368) 2021-06-08 23:59:30 +02:00
logging.go refactor(netx): extract tlsdialer from dialer 2021-06-08 12:52:15 +02:00
proxy_test.go refactor(netx/dialer): we can simplify the proxy (#371) 2021-06-09 07:11:31 +02:00
proxy.go refactor(netx/dialer): we can simplify the proxy (#371) 2021-06-09 07:11:31 +02:00
saver_test.go refactor(netx): move dialer's mockable types in mockablex (#368) 2021-06-08 23:59:30 +02:00
saver.go refactor(netx): extract tlsdialer from dialer 2021-06-08 12:52:15 +02:00
shaping_disabled.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
shaping_enabled.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
shaping_test.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
system_test.go refactor(netx): the TimeoutDialer is useless (#366) 2021-06-08 21:56:57 +02:00
system.go refactor(netx): the TimeoutDialer is useless (#366) 2021-06-08 21:56:57 +02:00