diff options
| author | Mikhail Osipov <mike.osipov@gmail.com> | 2020-12-16 15:27:48 +0300 |
|---|---|---|
| committer | Mikhail Osipov <mike.osipov@gmail.com> | 2020-12-16 15:27:48 +0300 |
| commit | 6fed9dd0dd62718f78eca11e30a71c2712636fbd (patch) | |
| tree | 8d1f90b96efbe8ea8aea350c283325adc216ef9d /pkg/server/hook/info-http.go | |
| parent | 050ea053dd549f0dd01beddfcd74989858391fd7 (diff) | |
hook and socket args check fix, tests
Diffstat (limited to 'pkg/server/hook/info-http.go')
| -rw-r--r-- | pkg/server/hook/info-http.go | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/pkg/server/hook/info-http.go b/pkg/server/hook/info-http.go index 73480ff..ec56f87 100644 --- a/pkg/server/hook/info-http.go +++ b/pkg/server/hook/info-http.go @@ -2,9 +2,9 @@ package hook import ( "bufio" + "tunnel/pkg/http" "tunnel/pkg/server/env" - "tunnel/pkg/server/opts" "tunnel/pkg/server/queue" ) @@ -42,14 +42,10 @@ func (info *infoHttp) Recv(rq, wq queue.Q) error { return queue.Copy(rq, wq) } -func (infoHttpHook) Open(env env.Env) (interface{}, error) { +func (infoHttpHook) New(env env.Env) (interface{}, error) { return &infoHttp{env: env}, nil } -func newInfoHttpHook(opts.Opts) (hook, error) { - return infoHttpHook{}, nil -} - func init() { - register("info-http", newInfoHttpHook) + register("info-http", infoHttpHook{}) } |
