-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Patch limited access #457
Patch limited access #457
Conversation
|
||
var Server = function(config, callback) { | ||
console.log("Starting server op port " + config.port + " ... "); | ||
|
||
server.listen(config.port); | ||
if (config.ipWhitelist === undefined) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The defaults for the config can be set in: https://github.com/MichMich/MagicMirror/blob/develop/js/defaults.js that might be a cleaner option.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that makes sense. However can we still display the warning message then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just check if it's set to a certain value, and then show a message ...
Awesome work! I've added a comment about the default settings. You might want to change/look into that. Also, is it possible for you to add information about this feature to the readme and add it to your PR? |
Also, it seems like travis bot isn't happy:
You might want to check the code using |
Will take care of this. We can probably do it without the warning message. If someone wants to access the mirror from outside, the error message is pretty clear on how to fix it. |
fbb5fa9
to
99cf1f4
Compare
99cf1f4
to
b583140
Compare
Awesome work! Thanks! |
I just tried installing develop on my real mirror, and get |
Never mind, fixed: b267491 |
I had |
Solves #456 as discussed there.
Features:
ipWhitelist
value is not specified in theconfig
From my PC:
From my phone: