The network layout does not change depending on which zones should be scanned. The network stays the same. Therefore HOME_NET should always be as if all networks are enabled - although when they are not.
Hello Michael, the generate_home_net_file() function starting with line 597 in the file ids-functions.pl does not care about if the IPS is enabled or disabled for a specific zone. It always adds all configured subnets and if red has a static configuration also all configured alias addresses to the home net declaration file. So I'm unable to fix this bug, because there is nothing to do.