aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.go b/main.go
index 2aa6d87..52dd7e4 100644
--- a/main.go
+++ b/main.go
@@ -89,8 +89,9 @@ func main() {
}
http.SetCookie(writer, &http.Cookie{
- Name: "powxy",
- Value: base64.StdEncoding.EncodeToString(expectedMAC),
+ Name: "powxy",
+ Value: base64.StdEncoding.EncodeToString(expectedMAC),
+ Secure: true,
})
log.Println("ACCEPTED", getRemoteIP(request), request.RequestURI, request.Header.Get("User-Agent"))