aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go15
1 files changed, 0 insertions, 15 deletions
diff --git a/main.go b/main.go
index 61fa133..10794ab 100644
--- a/main.go
+++ b/main.go
@@ -2,7 +2,6 @@ package main
import (
"crypto/hmac"
- "crypto/rand"
"crypto/sha256"
"crypto/subtle"
"encoding/base64"
@@ -16,20 +15,6 @@ import (
"time"
)
-var (
- privkey = make([]byte, 32)
- privkeyHash = make([]byte, 0, sha256.Size)
-)
-
-func init() {
- if _, err := rand.Read(privkey); err != nil {
- log.Fatal(err)
- }
- h := sha256.New()
- h.Write(privkey)
- privkeyHash = h.Sum(nil)
-}
-
var reverseProxy *httputil.ReverseProxy
func init() {