Skip to content

-l -list option does not understand multiple prefixes, comma-separated in a single line #859

@hubrandesk789

Description

@hubrandesk789

tlsx version:

Version: v1.2.0
Operative System: linux
Architecture: amd64
Go Version: go1.24.4

Current Behavior:

Serving targets as prefixes with the option -u work.
./tlsx -u 192.168.1.0/24,192.168.2.0/24,192.168.3.0/24

Using the option -l / -list filename.txt where the filename.txt contain a one line, comma-separated prefixes does not.
[WRN] Could not connect input 192.168.1.0/24,192.168.2.0/24,192.168.3.0/24:443 [auto,ztls:RUNTIME] failed to setup connection <- [:RUNTIME] cause="no address found for host" <- could not dial address <- could not connect to host

Expected Behavior:

Same behavior using -u or -l filename.txt

Steps To Reproduce:

Pick some prefixes of your chose who are reachable, save them inside filename.txt as prefix1,prefix2,prefix3
./tlsx -l filename.txt -v

Metadata

Metadata

Assignees

No one assigned

    Labels

    $75Type: BugInconsistencies or issues which will cause an issue or problem for users or implementors.💎 Bounty

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions