mirror of
https://github.com/ProxymanApp/Proxyman.git
synced 2026-04-27 09:05:54 +03:00
[GH-ISSUE #1662] Scripting interferes with Map Remote #1656
Labels
No labels
Discussion
Feature request
In Progress...
Plugins
Waiting response
Windows
Windows
bug
duplicate
enhancement
feature
good first issue
iOS
macOS 10.11
question
wontfix
✅ Done
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Proxyman#1656
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ashton-seek on GitHub (Jun 2, 2023).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1662
Description
It seems having a Map Remote setup for a domain will not work correctly if there is also a Scripting script running on that domain.
Steps to Reproduce
Given two domains, A and B that respond to the same requests.
Current Behavior
The Map Remote does not map to domain B when Scripting is enabled. Step 3 behaves incorrectly.
Expected Behavior
All requests map to domain B even when scripting is enabled.
Environment
@NghiaTranUIT commented on GitHub (Jun 2, 2023):
Hey @ashton-seek it's how we designed it. A request can be executed by either the Scripting or Map Remote. They won't work together.
You can write a simple Map Remote logic inside your Scripting, so it will work.
Here is the snippet code: https://docs.proxyman.io/scripting/snippet-code#change-request-destination-scheme-host-port-path