Compare commits

..

3 Commits

Author SHA1 Message Date
zhshch2002
1dddd43e67 fix: 错误默认端口号造成无法TCP Trace 2022-05-27 10:38:17 +08:00
tsosunchia
4148d0d4b1 Merge pull request #18 from tsosunchia/main
修改部分提示
2022-05-27 10:37:03 +08:00
tsosunchia
4f7977da8f 修改部分提示 2022-05-27 10:36:34 +08:00
2 changed files with 4 additions and 4 deletions

View File

@@ -96,7 +96,7 @@ nexttrace -d IP.SB
## 另外由于IP.SB被滥用比较严重会经常出现无法查询的问题请知悉。
```
`NextTrace`目前不支持自定义参数位置,请按标准格式输入命令
`NextTrace`支持参数混合使用
```bash
Example:
@@ -116,7 +116,7 @@ NextTrace 所有的的 IP 地理位置`API DEMO`可以参考[这里](https://git
```shell
Usage of nexttrace:
nexttrace [options] <hostname>
'nexttrace [options] <hostname>' or 'nexttrace <hostname> [option...]'
Options:
-T Use TCP SYN for tracerouting (default port is 80)
-U Use UDP Package for tracerouting (default port is 53 in UDP)

View File

@@ -18,7 +18,7 @@ import (
var fSet = flag.NewFlagSet("", flag.ExitOnError)
var tcpSYNFlag = fSet.Bool("T", false, "Use TCP SYN for tracerouting (default port is 80)")
var udpPackageFlag = fSet.Bool("U", false, "Use UDP Package for tracerouting (default port is 53 in UDP)")
var port = fSet.Int("p", -1, "Set SYN Traceroute Port")
var port = flag.Int("p", 80, "Set SYN Traceroute Port")
var numMeasurements = fSet.Int("q", 3, "Set the number of probes per each hop.")
var parallelRequests = fSet.Int("r", 18, "Set ParallelRequests number. It should be 1 when there is a multi-routing.")
var maxHops = fSet.Int("m", 30, "Set the max number of hops (max TTL to be reached).")
@@ -30,7 +30,7 @@ var tablePrint = fSet.Bool("table", false, "Output trace results as table")
var ver = fSet.Bool("V", false, "Check Version")
func printArgHelp() {
fmt.Println("\nArgs Error\nUsage : 'nexttrace [option...] <hostname>' or 'nexttrace <hostname> [option...]'")
fmt.Println("\nArgs Error\nUsage : 'nexttrace [option...] <hostname>' or 'nexttrace <hostname> [option...]'\nOPTIONS: [-VTU] [-d DATAORIGIN.STR ] [ -m TTL ] [ -p PORT ] [ -q PROBES.COUNT ] [ -r PARALLELREQUESTS.COUNT ] [-rdns] [ -realtime | -table ] -report")
fSet.PrintDefaults()
os.Exit(2)
}