add hook for net forward
This commit is contained in:
parent
e80e5c5679
commit
9ab117f51e
@ -14,6 +14,7 @@ var f = new(NetForward)
|
|||||||
var dialTimeout, udpTimeout int64
|
var dialTimeout, udpTimeout int64
|
||||||
|
|
||||||
func init() {
|
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().BoolVarP(&f.StdinMode, "stdin", "s", false, "enable stdin mode")
|
||||||
CmdNetforward.Flags().IntVarP(&f.DelayMilSec, "delay", "D", 0, "delay milliseconds")
|
CmdNetforward.Flags().IntVarP(&f.DelayMilSec, "delay", "D", 0, "delay milliseconds")
|
||||||
CmdNetforward.Flags().StringVarP(&f.LocalAddr, "local", "l", "0.0.0.0", "bind address")
|
CmdNetforward.Flags().StringVarP(&f.LocalAddr, "local", "l", "0.0.0.0", "bind address")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user