use correct API for figuring out whether crypto is enabled
This commit is contained in:
1 parent
619ebc20a8
commit
a00f67cf06
1 file changed
+1
-1
+1
-1
@@ -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) {
|
||||||
|
|||||||
Reference in new issue
Block a user