Removed security field, detection is not error proof for all tools.
This commit is contained in:
@ -32,11 +32,10 @@ function parseOutput(str, callback) {
|
||||
// SSID
|
||||
if (line.indexOf('ESSID:') > 0) {
|
||||
network.ssid = _.trim(line.split(':')[1], '"');
|
||||
}
|
||||
|
||||
// Security
|
||||
else if (_.startsWith(line.trim(), 'IE:')) {
|
||||
network.security = line.split(':')[1].trim();
|
||||
if (_.startsWith(network.ssid, '\\x00')) {
|
||||
// The raspi 3 interprets a string terminator as character, it's an empty SSID
|
||||
network.ssid = '';
|
||||
}
|
||||
}
|
||||
|
||||
// Channel, an ugly thing to get it
|
||||
|
Reference in New Issue
Block a user