Repository navigation
Commit 5fbcd4b
Normalize -dns-server once at flag parse time (#459)
A bare-IP -dns-server worked for the main scan, but -axfr, -nsec-walk
and the -dry-run preflight passed the raw value to the dialer, which
failed with "missing port in address". Normalize the flag right after
parsing (covering flag, env and config sources) and drop the per-call
copies in scanOptions and the -ptr pass.
Fixes #459
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent a45b999 commit 5fbcd4b
3 files changed
Lines changed: 38 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
309 | 315 | | |
310 | 316 | | |
311 | 317 | | |
| |||
924 | 930 | | |
925 | 931 | | |
926 | 932 | | |
927 | | - | |
928 | | - | |
929 | | - | |
930 | | - | |
931 | 933 | | |
932 | 934 | | |
933 | 935 | | |
| |||
936 | 938 | | |
937 | 939 | | |
938 | 940 | | |
939 | | - | |
| 941 | + | |
940 | 942 | | |
941 | 943 | | |
942 | 944 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
19 | 49 | | |
20 | 50 | | |
21 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
106 | 105 | | |
107 | 106 | | |
108 | 107 | | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
| 108 | + | |
114 | 109 | | |
115 | 110 | | |
116 | 111 | | |
| |||
0 commit comments