Apache SSL Virtual Hosts don't include ip6 address

SYSTEM INFORMATION
OS type and version Debian 12
Webmin version 2.510
Virtualmin version 7.40.1
Webserver version Apache/2.4.65

Recently setup servers don’t seem to include the shared ip6 address in the ssl virtual host but do for the non-ssl one. Older sites don’t have the issue even after the apache config is re-created.

e.g.

$ grep "<VirtualHost" /etc/apache2/sites-enabled/domainname.conf 
<VirtualHost xxx.245.117.82:80 [xxxx:4f8:c013:5b49::1]:80>
<VirtualHost xxx.245.117.82:443>

None of the sites have dns enabled and are top-level servers.

The only notable difference in the domain config is that old (working) sites have virt6= and newer ones with the issue have virt6=0.

We have fixed quite a few bugs related to IPv6 for the upcoming Virtualmin 7.50.0.

The current workaround is to add records manually and restart Apache.