Closed HenryNe closed 4 years ago
Hi and thanks for report !
After a quick review in code, we do not compile libmongoose with IPv6 support. => I will fix it soon.
NS_ENABLE_IPV6 in mongooseplus not helps. It stops here now:
2020-03-23T19:52:19.328549 [DEBUG] Web server's listen endpoint set to [::]:443.
2020-03-23T19:52:19.343334 [ERROR] Cannot bind to port
Lets see more with strace:
write(1, "2020-03-23T19:58:31.893982 [\33[37"..., 902020-03-23T19:58:31.893982 [DEBUG] Web server's listen endpoint set to [::]:443.) = 90
socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP) = 15
setsockopt(15, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
bind(15, {sa_family=AF_INET6, sa_data="\1\273\0\0\0\0\0\0\0\0\0\0\0\0"}, 16) = -1 EINVAL (Invalid argument)
close(15) = 0
I try to fix that in git revision c74d13b6ebc14d5673d1bcae5d0574b2dcbf7519.
If the buildin web server is configured for all IPv6 devices with the option
listen_on=[::]:443
, then the web server is listen on a random IPv4 port.Used ports by Freelan:
The "0.0.0.0:27113" is wrong there. This should be ":::443".
Config:
Runing:
Full debug log: freelan-debug.txt
Freelan was build from source release 2.2 with:
Same issure with build from current master source "freelan 2.3.0 (2.3) Sun 22 Mar 2020".