index: fix passing the `secure` flag to PacProxyAgent