h4x: Add proxy environment management.