Repository: projectdiscovery/httpx (language: go)

Issue:
bug with -nfs and -nf flag
<!-- 
1. Please search to see if an issue already exists for the bug you encountered.
2. For support requests, FAQs or "How to" questions, please use the GitHub Discussions section instead - https://github.com/projectdiscovery/httpx/discussions or
3. Join our discord server at https://discord.gg/projectdiscovery and post the question on the #httpx channel.
-->

<!-- ISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION. -->

### httpx version:
all  with the -nfs and -nf flag version.
### Current Behavior:

The bug is that when the requested URL hostname is an IP and the path is a number, the IP address is parsed incorrectly and it is parsed into an IP segment.
```
#echo http://127.0.0.1/1 | httpx -duc -nfs -v

    __    __  __       _  __
   / /_  / /_/ /_____ | |/ /
  / __ \/ __/ __/ __ \|   /
 / / / / /_/ /_/ /_/ /   |
/_/ /_/\__/\__/ .___/_/|_|
             /_/

		projectdiscovery.io

[DBG] Failed 'http://0.0.0.22': GET http://0.0.0.22 giving up after 1 attempts: Get "http://0.0.0.22": [:RUNTIME] ztls fallback failed <- dial tcp 0.0.0.22:80: connect: no route to host
[DBG] Failed 'http://0.0.0.47': GET http://0.0.0.47 giving up after 1 attempts: Get "http://0.0.0.47": [:RUNTIME] ztls fallback failed <- dial tcp 0.0.0.47:80: connect: no route to host
[DBG] Failed 'http://0.0.0.7': GET http://0.0.0.7 giving up after 1 attempts: Get "http://0.0.0.7": [:RUNTIME] ztls fallback failed <- dial tcp 0.0.0.7:80: connect: no route to host
[DBG] Failed 'http://0.0.0.41': GET http://0.0.0.41 giving up after 1 attempts: Get "http://0.0.0.41": [:RUNTIME] ztls fallback failed <- dial tcp 0.0.0.41:80: connect: no route to host
[DBG] Failed 'http://0.0.0.6': GET http://0.0.0.6 giving up after 1 attempts: Get "http://0.0.0.6": [:RUNTIME] ztls fallback failed <- dial tcp 0.0.0.6:80: connect: no route to host
[DBG] Failed 'http://0.0.0.43': GET http://0.0.0.43 giving up after 1 attempts: Get "http://0.0.0.43": [:RUNTIME] ztls fallback failed <- dial tcp 0.0.0.43:80: connect: no route to host
[DBG] Failed 'http://0.0.0.50': GET http://0.0.0.50 giving up after 1 attempts: Get "http://0.0.0.50": [:RUNTIME] ztls fallback failed <- dial tcp 0.0.0.50:80: connect: no route to host
[DBG] Failed 'http://0.0.0.4': GET http://0.0.0.4 giving up after 1 attempts: Get "http://0.0.0.4": [:RUNTIME] ztls fallback failed <- dial tcp 0.0.0.4:80: connect: no route to host
[DBG] Failed 'http://0.0.0.44': GET http://0.0.0.44 giving up after 1 attempts: Get "http://0.0.0.44": [:RUNTIME] ztls fallback failed <- dial tcp 0.0.0.44:80: connect: no route to host
[DBG] Failed 'http://0.0.0.51': GET http://0.0.0.51 giving up after 1 attempts: Get "http://0.0.0.51": [:RUNTIME] ztls fallback failed <- dial tcp 0.0.0.51:80: connect: no route to host
[DBG] Failed 'http://0.0.0.42': GET http://0.0.0.42 giving up after 1 attempts: Get "http://0.0.0.42": [:RUNTIME] ztls fallback failed <- dial tcp 0.0.0.42:80: connect: no route to host
.......
```


### Expected Behavior:
only request `http://127.0.0.1/1`

### Steps To Reproduce:




`echo http://127.0.0.1/1 | httpx -duc -nfs -v`
`echo http://127.0.0.1/12 | httpx -duc -nfs -v`

It will request the generated IP segment, and the request time is very long


without -nfs flag,it's normal.only request `http://127.0.0.1/1`
`echo http://127.0.0.1/1 | httpx -duc -v`



Discussion / hints:

Fix patch:
diff --git a/runner/runner.go b/runner/runner.go
index 74adaeb4b..6ed36a6e8 100644
--- a/runner/runner.go
+++ b/runner/runner.go
@@ -1310,7 +1310,7 @@ func (r *Runner) process(t string, wg *syncutil.AdaptiveWaitGroup, hp *httpx.HTT
 		protocols = []string{httpx.HTTPS, httpx.HTTP}
 	}
 
-	for target := range r.targets(hp, stringz.TrimProtocol(t, scanopts.NoFallback || scanopts.NoFallbackScheme)) {
+	for target := range r.targets(hp, t) {
 		// if no custom ports specified then test the default ones
 		if len(customport.Ports) == 0 {
 			for _, method := range scanopts.Methods {


Test patch: