IrosTheBeggar / mStream

The easiest music streaming server available
http://mstream.io
GNU General Public License v3.0
2.22k stars 188 forks source link

RaspberryPi/IPv6 connect ECONNREFUSED ::1:3000 #351

Open HeartofPhos opened 2 years ago

HeartofPhos commented 2 years ago

Using an RaspberyPi 4 with Raspbian GNU/Linux 11 (bullseye) all local Api calls done using IPv6 fail with the exception connect ECONNREFUSED ::1:3000 calls using IPv4 work as expected. The issue manifests when localhost resolves to ::1 when passed to axios as a url e.g. src/db/scanner.js:119

Reproduction steps

Possible fixes

After applying either of the above fixes, it appears to run without any additional configuration or issues.

IrosTheBeggar commented 2 years ago

Thanks for the detailed bug report! I just pushed this fix