Fix bug where module does not work if enable_ipv[46]_localhostis set to false