After updating to v1.3, I found that it takes an extremely long time to load WebUI when there are many rules (200+).
With LLM's help, I reviewed the WebUI's source and found that everytime when WebUI is opened, it will clear all existing rules and reapply them, which is unnecessary because service.sh has already done this. By the way, I found that all isolation actions (calling iptables etc.) in WebUI are separated from shell scripts. I think moving them to shell scripts and letting WebUI only read and write configurations may be better.
I'm not a JavaScript programmer. If I make any error, please point it out.
After updating to v1.3, I found that it takes an extremely long time to load WebUI when there are many rules (200+).
With LLM's help, I reviewed the WebUI's source and found that everytime when WebUI is opened, it will clear all existing rules and reapply them, which is unnecessary because
service.shhas already done this. By the way, I found that all isolation actions (callingiptablesetc.) in WebUI are separated from shell scripts. I think moving them to shell scripts and letting WebUI only read and write configurations may be better.I'm not a JavaScript programmer. If I make any error, please point it out.