CLI Map Remote create rejects `ws://` destinations supported by the GUI

Open
#2,782 1 comment 0 reactions 1 assignee View on GitHub

@NghiaTranUIT is already working on this.

Since Oct 5, 2026.

Assessment

This issue has not been assessed yet.

Description

✅ Done bug

The bundled proxyman-cli rejects ws:// destinations when creating Map Remote rules, even though the Proxyman GUI supports them.

Rules configured with a WebSocket destination through the GUI can also be read successfully using CLI list and get. The inconsistency appears to be in the CLI creation validation.

Steps to Reproduce

  1. Open Proxyman.

  2. Run the following command using the Setapp installation:

    "/Applications/Setapp/Proxyman.app/Contents/MacOS/proxyman-cli" \
      rules map-remote create \
      '^wss://example\.com/socket(?:\?.*)?$' \
      'ws://localhost:5173' \
      --name 'WebSocket CLI test' \
      --match regex \
      --method GET \
      --enabled false \
      --json
    
  3. Observe that the command fails with an invalid_input error.

  4. Configure a Map Remote rule with ws://localhost:5173 as its destination through the GUI. The GUI accepts it, and CLI list/get can subsequently return that destination.

Current Behavior

CLI creation fails with:

{
  "code": "invalid_input",
  "message": "to_url must be an absolute http or https URL."
}

The rule is rejected before any WebSocket connection is attempted.

As a workaround, creating a disabled rule with an http:// destination through the CLI and then changing its protocol to ws through the GUI succeeds.

Expected Behavior

CLI Map Remote creation should accept WebSocket destinations supported by the GUI, including ws://localhost:5173.

Please align the CLI destination URL validation with the protocols supported by Map Remote. Only ws:// rejection was tested; wss:// was not tested.

Environment

  • App version: Proxyman 26.0.1, build 260001 — Setapp
  • macOS version: macOS 27.0.1, build 26A434
  • CLI: Bundled proxyman-cli from the same Proxyman installation
Dominant language
No language data
Stars
7.1k
Forks
238
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ProxymanApp/Proxyman

All issues in ProxymanApp/Proxyman

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.