ProxymanApp / Proxyman

Modern. Native. Delightful Web Debugging Proxy for macOS, iOS, and Android ⚡️
https://proxyman.io
5.34k stars 177 forks source link

map local does not apply even with matching url #2020

Closed lucapennagit closed 1 month ago

lucapennagit commented 1 month ago

Description

I am experiencing a problem and I can't understand the cause. I have regularly used map local rules for some time now, to remap network calls of my mobile devices, but yesterday I started experiencing the following: even when an url that matches the rule (I tested the rule matching), the re-map is not applied. Please note I did not knowingly changed any setting nor I updated my version (I am using Proxyman on Mac, Version 4.16.0 (49700)) Can you help me?

NghiaTranUIT commented 1 month ago

Maybe you should disable other active tools, such as Block List, Breakpoint, and Scripting, so the Map Local can work.

To test if the rule can match your URL, you can use the Test your Rule

Screenshot 2024-05-07 at 21 30 04

lucapennagit commented 1 month ago

I already disabled other tools but I don't think that's the problem: I used map local contemporarily with breakpoints before. and the problem applies to any url and rule I have (they are several). the rules I tested already, both with the Test your rule tool and by using them effectively before the problem started.

NghiaTranUIT commented 1 month ago

I guess you should bring your Map Local Rule to the top of the List of Map Local Rule.

Map Local Tool will evaluate each rules, from top -> bottom. I guess it can match some above tool, and never hit your rule.

lucapennagit commented 1 month ago

even if the only rule active is the one that i'm testing? can it be caused by the rule being in a folder for tidiness?

lucapennagit commented 1 month ago

i confirmed by testing that the problem is the rule being inside a folder. should I change this into a bug?

NghiaTranUIT commented 1 month ago

can you try to:

  1. Keep your Map Local Rule inside the folder -> Enable it
  2. For other rules, disable it (Don't disable the folder)
  3. Test if your URL can hit the rule?

From what I've tested, it's working fine

lucapennagit commented 1 month ago

I did not know you needed to activate the folder also in order to make an activated rule effective. Maybe make it more explicit in future versions... thanks

lucapennagit commented 1 month ago

problem solved

NghiaTranUIT commented 1 month ago

if you disable the folder, all children rules are grey out. It's my purpose to indicate that all children are disabled.