summaryrefslogtreecommitdiff
path: root/pkg/server/hook/aes.go
diff options
context:
space:
mode:
authorMikhail Osipov <mike.osipov@gmail.com>2020-02-29 01:09:33 +0300
committerMikhail Osipov <mike.osipov@gmail.com>2020-02-29 23:48:53 +0300
commit7ab641d239e502e09c6f05dfc7efd069fcf3c314 (patch)
treeb544135633d51162a89132f061cdb987572f5d16 /pkg/server/hook/aes.go
parentc55afd2de177f128fae6e1c52d0c56af17096258 (diff)
fix hook variable check
Diffstat (limited to 'pkg/server/hook/aes.go')
-rw-r--r--pkg/server/hook/aes.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/server/hook/aes.go b/pkg/server/hook/aes.go
index b461a34..414f6d6 100644
--- a/pkg/server/hook/aes.go
+++ b/pkg/server/hook/aes.go
@@ -65,7 +65,7 @@ func (a *aesPipe) Recv(rq, wq queue.Q) error {
}
func newAes(env env.Env) *aesPipe {
- s := getAuthSecret(env)
+ s := getHookVar(env, "secret")
h := md5.Sum([]byte(s))
a := &aesPipe{key: make([]byte, 16)}