-
Notifications
You must be signed in to change notification settings - Fork 622
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
userBlockedIP parameter not trimming spaces #5809
Comments
If you format your json with https://jsonlint.com, your json is invalid
|
You can also load up visual studio code, then load up ur json file, it will load the schema and possibly tell u those values are invalid for that section too |
Thanks for pointing it out. I fixed the config.json now and the new JSON file is valid in https://jsonlint.com/. The issue still persists. New json:
|
Additional information: Specs of the 2nd server: Meshcentral version: Node version: |
Try formatting the ips without the spaces as u have in the example |
Additional Information: |
The removal of spaces did the work. Thanks a lot. ❤ |
No it's OK! I'll look into it, as it should be trimming the spaces! Thanks for letting me know... |
Signed-off-by: si458 <[email protected]>
all fixed! will be in next release 👍 |
Signed-off-by: si458 <[email protected]>
Issue:
About a month ago, I experimented with the 'userBlockedIP' parameter in MeshCentral version 1.1.18, and it worked perfectly. I even managed to redirect the blocked IPs to a specific URL using the 'ipBlockedUserRedirect' parameter. However, I'm currently facing an issue where I need to block certain IP addresses for security purposes, but it appears that the blocking feature isn't functioning correctly. Despite having blocked two distinct IP addresses, I'm still able to log in from those addresses.
My config.json:
Server OS:
Windows 11 Pro
Meshcentral Version:
1.1.18
(I prefer not to update to 1.1.20 because usually speaking, new bugs might arise. This is used at an enterprise, so I try my best to opt out of updates)
Node version:
20.11.0
Network:
Simple port forwarding
Additional Info
It is worth noting that I have the Master JS file for computer-identifiers.js
"https://github.com/Ylianst/MeshCentral/blob/master/agents/modules_meshcore/computer-identifiers.js"
The text was updated successfully, but these errors were encountered: