use correct API for figuring out whether crypto is enabled

This commit is contained in:
Matthias Radestock committed 2015-03-05 15:51:54 +00:00
1 parent 619ebc20a8
commit a00f67cf06
1 file changed
+1 -1
+1 -1
View File
@@ -149,7 +149,7 @@ func main() {
func handleHttp(router *weave.Router) { func handleHttp(router *weave.Router) {
encryption := "off" encryption := "off"
if router.Password != nil { if router.UsingPassword() {
encryption = "on" encryption = "on"
} }
http.HandleFunc("/status", func(w http.ResponseWriter, r *http.Request) { http.HandleFunc("/status", func(w http.ResponseWriter, r *http.Request) {