Description
When attempting to implement ttyd on OpenWRT on my router, I noticed there were issues with getting ttyd running correctly, and it appears that they may be rooted in a limitation/problem with this library.
I'd like to reiterate that:
A commonly forgotten feature of Linux networking is that Linux allows you to listen to multiple IP addresses on the same interface without bridges or virtual adapters.
From the core issue:
The problem this seems to cause, is that ttyd is only binding to one IP addresses when specifying a device even if that device has more than one IP address.
Which seems to be caused by libwebsockets here:
Workaround:
A possible workaround for now, is to have ttyd check the interface first for all assigned IPs when creating the websockets