mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-13 01:30:31 +08:00
nginx only binds an IPv4 socket, if the listen option is specified without [::]. There are two possibilites to fix this issue. Either the listen option can be specified using only [::], and additionally including ipv6only=off. This makes nginx bind an IPv6 socket which is also able to handle IPv4 connections. Or the listen option can be specified twice, one with [::] and one without. This makes nginx bind two independent sockets. If the first option is chosen, IPv4 addresses are mapped into the IPv6 address space, which might break scripts, filters, etc. So, for now, the second option is chosen.