summaryrefslogtreecommitdiff
path: root/pkg/server/hook/info-http.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/server/hook/info-http.go')
-rw-r--r--pkg/server/hook/info-http.go10
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{})
}