Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

print unsecure network security if there's no password present #144

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jiahuang
Copy link
Contributor

@jiahuang jiahuang commented Sep 8, 2014

Before we printed out wpa2 security even though firmware was connecting with type unsecure

@tcr
Copy link
Member

tcr commented Sep 8, 2014

If I use -security wpa2 and omit a password, it switches to unsecure?

@tcr
Copy link
Member

tcr commented Sep 8, 2014

TIL "unsecure" is not "insecure"

@@ -98,7 +97,26 @@ common.controller({stop: false}, function (err, client) {
pass = new Buffer(String(pass));
}

var security = new Buffer((String(argv.security) || (pass ? 'wpa2' : 'unsecure')).toLowerCase());
var security = argv.security;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Normalize toLowerCase() here instead of multiple times later.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

argv.security can be undefined if its not specified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants