Skip to content

Bug: PAC script generation uses invalid 'HTTP' prefix instead of standard 'PROXY' prefix #2

@zhaocongqi

Description

@zhaocongqi

Description
When using the Auto Policy mode and setting a proxy host with the HTTP protocol, the generated PAC script returns "HTTP host:port". However, "HTTP" is not a standard PAC return directive. According to the PAC specification (MDN) and Chromium's implementation, the correct directive for an HTTP proxy is "PROXY host:port".
This causes the proxy to silently fail or be ignored by Chrome and other standard browsers.

Steps to Reproduce

  1. Create a proxy using the HTTP protocol.
  2. Assign this proxy in an Auto Policy.
  3. Set the Auto Policy as active.
  4. The generated PAC script uses return "HTTP <ip>:<port>"; which Chrome does not recognize.

Expected Behavior
The PAC script should return "PROXY <ip>:<port>"; for HTTP proxies.

Environment

  • Browser: Chrome / Edge / Firefox
  • Extension Version: 2.0.6 (latest)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions