Implement shell --forward-ports

This commit is contained in:
AlexSSD7 2023-08-26 11:57:12 +01:00
commit 7789923672
5 changed files with 105 additions and 10 deletions

View file

@ -108,3 +108,9 @@ var shellCmd = &cobra.Command{
return nil
},
}
var forwardPortsFlagStr string
func init() {
shellCmd.Flags().StringVar(&forwardPortsFlagStr, "forward-ports", "", "Extra TCP port forwarding rules. Syntax: '<HOST PORT>:<VM PORT>' OR '<HOST BIND IP>:<HOST PORT>:<VM PORT>'. Multiple rules split by comma are accepted.")
}