diff --git a/netforward/cmd.go b/netforward/cmd.go index 32d54f9..609766a 100644 --- a/netforward/cmd.go +++ b/netforward/cmd.go @@ -14,6 +14,7 @@ var f = new(NetForward) var dialTimeout, udpTimeout int64 func init() { + CmdNetforward.Flags().IntVarP(&f.DelayToward, "delay-toward", "T", 0, "delay toward milliseconds,0 for both,1 for local,2 for remote") CmdNetforward.Flags().BoolVarP(&f.StdinMode, "stdin", "s", false, "enable stdin mode") CmdNetforward.Flags().IntVarP(&f.DelayMilSec, "delay", "D", 0, "delay milliseconds") CmdNetforward.Flags().StringVarP(&f.LocalAddr, "local", "l", "0.0.0.0", "bind address")