gengjiawen mieqq JS正则还是比较好写的,可以使用 https://regex101.com/ 辅助。JSC我不熟悉,但如果用了script功能,额外的内存占用并不会特别多。如果说好验证,正则用JS肯定比 Object-C 好验证,浏览器就可以支持验证JS的功能。
owenlynda @SurgeTeam @mieqq Hello Big Boss, please how do I configure Surge to globally rewrite and redirect all HTTP://* requests to HTTPS://* except or excluding some domains such as ocsp.example.com, ocsp.digicert.com. Thanks
mieqq owenlynda [General] always-raw-tcp-hosts = ocsp.example.com,xxx.com [URL Rewrite] http://(.*) https://$1 307
owenlynda mieqq I'm using Surge4 on MacOS, the always-raw-tcp-hosts is not supported. How do I add the exclusion of the "ocsp1.example.com, ocsp2.example.com, ocsp.example.com" in the Source "http://(.). Thanks Boss