Switch between mod_proxy_protocol and mod_remoteip is not working

Summary

Apache vhost config is always filled with mod_proxy_protocol directives even in newer apache versions.

Steps to reproduce

  1. Enable PROXY PROTOCOL in Sites->Options on a system with apache 2.4.30+
  2. Check corresponding vhost file, mod_proxy_protocol is still used

Correct behaviour

In apache versions newer than 2.4.30 the mod_remoteip should be used instead

Environment

Server OS + version: Debian 11 ISPConfig version: 3.2.9p1

References

#5457 (closed)