From 9ab117f51e10d0952ab925e5ff047ccf67f3ffcb Mon Sep 17 00:00:00 2001 From: Starainrt Date: Fri, 22 Mar 2024 14:45:44 +0800 Subject: [PATCH] add hook for net forward --- netforward/cmd.go | 1 + 1 file changed, 1 insertion(+) 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")