Two server relays listening on the same IP address causes segmentation faults on Linux #1
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The relay should be able to bind to 127.0.0.1 and run on different ports when using different bot tokens, but for some reason this causes IXWebsocket to not bind or listen properly (despite what ss says) and causes a segmentation fault because libdpp is trying to send a message to an invalid IXWebsocket object.
This is more than likely a bug in IXWebsocket or Linux(?), but the temporary fix currently is to just run on a different IP address like 127.0.0.2, etc.
Self-test code should be added as well to prevent future segmentation faults, but as usual, write it down fix it later.