Cavegen: fix division by 0 with abnormal max tunnel diameter sizes
Fix ipv6 on windows
Merge remote-tracking branch 'upstream/master'