gravitee-io / issues

Gravitee.io - API Platform - Issues
64 stars 26 forks source link

Clarification on IPv6 support on linux needed #4097

Open pvdh opened 4 years ago

pvdh commented 4 years ago

Both graviteeio-gateway and graviteeio-rest-api disable IPv6 on linux in the startup-scripts.

`

Force IPv4 on Linux systems since IPv6 doesn't work correctly with jdk5 and lower

if [ "$linux" = "true" ]; then JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack=true" fi `

Since gravitee requires jdk8, this default does not seem to be necessary. Are there other reasons to disable IPv6 on linux?

Personally, I'd be reluctant to change such a default in an upcoming release, but I'd humbly suggest to add a new option like ${GIO_IPV6} to easily enable IPv6. Right now, I need to create my own docker-image, replacing the startup-script, just to enable IPv6 on linux.

brasseld commented 4 years ago

Hi @pvdh

I didn't have a try, but maybe preparing your JAVA_OPTS with -Djava.net.preferIPv6Addresses=true should do the trick for you, without having to build your own docker-image