mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-08-31 19:08:29 +00:00
feat: return correct config for CS processors
When MC is running on a processor with a control subnet and a user attempts to access the UI via the control subnet, the return _config.local.json needs to reflect the CS LAN IP address for the processor rather than the LAN IP Address. In order to accomplish this, there will now be 2 config files written to disk on startup: 1. the original file, /user/programX/mcUserApp/_local-config/_config.local.json 2. A file with the correct CS IP Address /user/programX/mcUserApp/_local-config/_config.cs.json When a user requests the _config.local.json, the processor will compare the remote IP address with the CS LAN IP Address and determine if they're in the same subnet, the assumption being that if the IP Addresses are in the same subnet, then the app or end user is on the CS LAN and needs the CS config. If the addresses are in the same subnet, then the contents of the _config.cs.json will be returned.
This commit is contained in:
parent
e7c3fcbbd9
commit
12c8660015
3 changed files with 1512 additions and 1381 deletions
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue