Merge pull request #104 from aus/tcp-typo

fix: fixes a typo in the tcp.proxy module
This commit is contained in:
Simone Margaritelli 2018-02-28 12:10:16 +01:00 committed by GitHub
commit 4de2e1cc52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,13 +49,13 @@ func NewTcpProxy(s *session.Session) *TcpProxy {
"Path of a TCP proxy JS script."))
p.AddHandler(session.NewModuleHandler("tcp.proxy on", "",
"Start HTTP proxy.",
"Start TCP proxy.",
func(args []string) error {
return p.Start()
}))
p.AddHandler(session.NewModuleHandler("tcp.proxy off", "",
"Stop HTTP proxy.",
"Stop TCP proxy.",
func(args []string) error {
return p.Stop()
}))