added flag to add custom metadata

This commit is contained in:
2023-09-27 17:27:52 +01:00
parent 7ed25ef4b3
commit 96e755bc19
8 changed files with 115 additions and 2 deletions

View File

@@ -273,5 +273,14 @@ var CliAction = func(ctx *cli.Context) error {
}
}
if AddMetaData != "" {
err := clientIPTable.AddCustomInformationToIPTable(AddMetaData)
if err != nil {
fmt.Println(err)
} else {
fmt.Println("Success")
}
}
return nil
}