Commit 44fd2e7
committed
Fix -l/-list option to parse comma-separated values
This commit fixes issue #859 where the -l/-list option did not handle
comma-separated values on a single line, unlike the -u option which
correctly parses comma-separated hosts.
Changes:
- Modified normalizeAndQueueInputs() to split file input lines by comma
- Applied same logic to stdin input for consistency
- Each item is trimmed of whitespace before processing
- Maintains backward compatibility with newline-separated inputs
Now both -u and -l options support the same comma-separated format:
./tlsx -u host1,host2,host3
./tlsx -l file.txt (where file.txt contains: host1,host2,host3)
Fixes #8591 parent d13b67f commit 44fd2e7
1 file changed
+14
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
443 | | - | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
444 | 450 | | |
445 | 451 | | |
446 | 452 | | |
| |||
449 | 455 | | |
450 | 456 | | |
451 | 457 | | |
452 | | - | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
453 | 465 | | |
454 | 466 | | |
455 | 467 | | |
| |||
0 commit comments