diennea / carapaceproxy

A Distributed Java Reverse Proxy
Apache License 2.0
24 stars 8 forks source link

Unable to load io.netty.resolver.dns.macos.MacOSDnsServerAddressStreamProvider #507

Closed NiccoMlt closed 2 weeks ago

NiccoMlt commented 3 weeks ago

When running on macOS with an ARM-based device, we get the following warning:

nov 04, 2024 11:46:57 AM io.netty.resolver.dns.DnsServerAddressStreamProviders <clinit>
GRAVE: Unable to load io.netty.resolver.dns.macos.MacOSDnsServerAddressStreamProvider, fallback to system defaults. This may result in incorrect DNS resolutions on MacOS. Check whether you have a dependency on 'io.netty:netty-resolver-dns-native-macos'. Use DEBUG level to see the full stack: java.lang.UnsatisfiedLinkError: failed to load the required native library

This is because Netty requires io.netty:netty-resolver-dns-native-macos in the classpath to leverage DNS resolution correctly.

Reactor Netty bundles the x86 version, but not the ARM one