different if formatting
fix logic error: ipv6 and ipv4 configs were swapped