desertwitch / NUT-unRAID

A refactored, modernized version of the original NUT plugin with a focus on frequent updates.
GNU General Public License v2.0
5 stars 2 forks source link

IPv6 support requires manual config file tinkering #4

Open Leseratte10 opened 1 week ago

Leseratte10 commented 1 week ago

Currently, the config file at /etc/nut/upsd.conf just contains the one line "LISTEN 0.0.0.0", which makes the UPS service only listen on legacy IPv4.

I am running NUT 2.8.2. It looks like NUT 2.8.1 and above also support the statement "LISTEN *" (see here ) which will listen on both 0.0.0.0 and [::] so both IPv4 and IPv6 clients will be able to connect.

To still support the older NUT versions 2.8.0 and 2.7.4 which can still be selected from the version dropdown, it should also be possible to just add both listen statements ("LISTEN 0.0.0.0" and "LISTEN ::") to that same file.

I have not found a GUI settings toggle to enable IPv6 so I had to manually put "LISTEN *" into the config file using the Configuration Editor and restart the service.

Can this be changed for future versions so that IPv6 support is enabled by default? Should be enough to modify the default upsd.conf config file to do that.

desertwitch commented 1 week ago

Thanks for reporting this, it's a good point and I'll integrate this in the next update.