Commit d001bba
committed
Finalize DNS via Proxy
See #2328, original PR #2295 from @w4ntun .
Formally testssl.sh returned an error when it wasn't not possible to determine IP
addresses through DNS resolution, even if --proxy and --ip=proxy flags are set.
The main function always tried to determine IP addresses via DNS and exits with
a fatal error if it cannot do it. Although the client cannot get the IP, the
proxy could, so the SSL/TLS analysis is still possible.
This PR allows the analysis for an HTTP service via a proxy server and the DNS
traffic can be sent directly or through the proxy using the flag --ip=proxy.
ATTENTION: This may be a breaking change for those who don't have a local resolver.
They now have to add --ip=proxy.
In addition:
* help() was amended to add --ip=proxy (was only in the ~i/doc dir before)
* amending ~/doc dir to document it's better to add --nodns=min when there's
no local resolver1 parent 9afa277 commit d001bba
4 files changed
Lines changed: 16 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
143 | | - | |
| 142 | + | |
144 | 143 | | |
145 | 144 | | |
146 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8828 | 8828 | | |
8829 | 8829 | | |
8830 | 8830 | | |
8831 | | - | |
| 8831 | + | |
8832 | 8832 | | |
8833 | 8833 | | |
8834 | 8834 | | |
| |||
9686 | 9686 | | |
9687 | 9687 | | |
9688 | 9688 | | |
| 9689 | + | |
| 9690 | + | |
9689 | 9691 | | |
9690 | 9692 | | |
9691 | 9693 | | |
| |||
9707 | 9709 | | |
9708 | 9710 | | |
9709 | 9711 | | |
| 9712 | + | |
| 9713 | + | |
| 9714 | + | |
9710 | 9715 | | |
9711 | 9716 | | |
9712 | 9717 | | |
| |||
20308 | 20313 | | |
20309 | 20314 | | |
20310 | 20315 | | |
20311 | | - | |
| 20316 | + | |
| 20317 | + | |
20312 | 20318 | | |
20313 | 20319 | | |
20314 | 20320 | | |
| |||
21026 | 21032 | | |
21027 | 21033 | | |
21028 | 21034 | | |
21029 | | - | |
| 21035 | + | |
| 21036 | + | |
21030 | 21037 | | |
21031 | 21038 | | |
21032 | 21039 | | |
| |||
0 commit comments