the project structure modified and new features added

This commit is contained in:
MDK
2023-09-26 14:12:04 +08:00
parent 4fcf28804c
commit 4c63d78e4e
14 changed files with 174 additions and 47 deletions

View File

@@ -27,7 +27,7 @@ input target can be added as an argument or as a file
func upstream(cmd *cobra.Command, args []string) {
if len(args) > 1 {
panic(errors.New("too many arguments!"))
panic(errors.New("too many arguments"))
} else if len(args) == 1 {
if utils.IsValidIP(args[0]) {
prober.Get_upstream_ip(args[0])