UStAEnts / x32-reflector

A simple module that polls x32 to send all parameter changes and then redirects them to a set of configured clients
0 stars 0 forks source link

Support for hostnames instead of just IP addresses #7

Open wlabarron opened 2 years ago

wlabarron commented 2 years ago

This may introduce too much overhead into the program or be out of scope, but thought I’d bring it up anyway.

By allowing you to enter a host name instead of an IP address, you reduce the chance of the connection being broken if a DHCP lease expires for some reason (perhaps rebooting faulty equipment mid-event).

Vitineth commented 2 years ago

This should be fine to implement - just need to remove the IP regex and it should work exactly the same as it uses https://nodejs.org/api/dgram.html#socketsendmsg-offset-length-port-address-callback internally which should resolve any hostnames automatically and the system will handle any caching etc.

Vitineth commented 2 years ago

Blocked by #6