Fix ex proxy support (issue #4120)