Digiline router 🔗
This is a simple digiline "router" mod that is designed allow for larger digiline networks.
Here is how it works:
-
A router listens on a configurable prefix
-
When a incoming digiline message has a channel name that matches the prefix, it retransmits the message with a new channel name that has the prefix removed from the front
The idea here is to allow for complex topologies that route messages where they need to go based on the channel name. For instance, sending to a channel called east1-area2-myhouse-dev1 might go though router prefixes east1-, area2-, myhouse- to reach channel dev1
To avoid loops, digiline routers remove all characters up to the last instance of the prefix. This means that if you set a router to dc1- and send it string dc1-dc2-dc3-dc1-test the resulting channel name will be test
Note on security and stablity 🔗
This mod needs a testing. If you do find a issue such as a denial of service attack please open a new issue.