send different flags depending on whether the proxy connection is secure or not