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

Aperta
#2,782 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

@NghiaTranUIT ci sta già lavorando.

Dal 5/10/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

✅ 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
Lingua principale
Nessun dato sulla lingua
Stelle
7.1k
Fork
238
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ProxymanApp/Proxyman

Tutte le issue di ProxymanApp/Proxyman

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.