From a00f67cf0647d1af914946ff7fd91cf67bf8b7c8 Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Thu, 5 Mar 2015 15:51:54 +0000 Subject: [PATCH] use correct API for figuring out whether crypto is enabled --- weaver/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weaver/main.go b/weaver/main.go index f4ebb436..d8c2d855 100644 --- a/weaver/main.go +++ b/weaver/main.go @@ -149,7 +149,7 @@ func main() { func handleHttp(router *weave.Router) { encryption := "off" - if router.Password != nil { + if router.UsingPassword() { encryption = "on" } http.HandleFunc("/status", func(w http.ResponseWriter, r *http.Request) {