crazyStar00 opened a new issue, #5279:
URL: https://github.com/apache/shenyu/issues/5279

   ### Is there an existing issue for this?
   
   - [X] I have searched the existing issues
   
   ### Current Behavior
   
   1. The access to the system using the network segment 192.168.40 is blocked, 
as expected
   2. The network segment 192.168.42 is used to access the system. The 
forwarding is normal and meets expectations
   3. The network segment 192.168.40 is used to access the system, and the 
forwarding is normal
   
   Cause of the problem:
   1. When network segment 192.168.42 accesses the system and no rule is 
matched, an empty rule is added to the MatchDataCache.RULE_DATA_MAP cache
   3. When the 192.168.40 network segment is used again, the null rule is 
obtained from the MatchDataCache.RULE_DATA_MAP cache, and the actual rule does 
not take effect
   
   Temporary solutions:
   1. Modify defaultMatchRule in AbstractShenyuPlugin to write the empty rule 
rule to cached code comments
   
   
![image](https://github.com/apache/shenyu/assets/18380553/2e359bd3-3805-4c23-af9c-5ff0c2103f32)
   
   
![image](https://github.com/apache/shenyu/assets/18380553/bf97a129-2308-46d5-a952-1ed93da0cfaf)
   
   
   
   ### Expected Behavior
   
   _No response_
   
   ### Steps To Reproduce
   
   _No response_
   
   ### Environment
   
   ```markdown
   ShenYu version(s):2.6.0
   ```
   
   
   ### Debug logs
   
   _No response_
   
   ### Anything else?
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to