Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

store encryption mode in results

  • Loading branch information...
commit 685d01a9e210274e40742905f04374a79da5771e 1 parent 01fe432
@substack authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  iw.js
View
3  iw.js
@@ -42,5 +42,8 @@ exports.scan = function (iface, cb) {
if (m = /^\s+ESSID:"(.+)"/.exec(line)) {
current.essid = m[1];
}
+ else if (m = /^\s+Encryption key:(.+)/.exec(line)) {
+ current.encrypted = m[1] !== 'off';
+ }
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.