TGTGInsighttelegram intelligenceLIVE / telegram public index
← Cool Scripts
Cool Scripts avatar

TGINSIGHT POST

Post #282

@cool_scripts

Cool Scripts

Views19,600帖子阅读量
发布11月25日2020/11/25 19:18
Post content

帖子内容

#Surge#httpAPI#Shortcuts Surge 兼容模式 某些 App 会检测代理,通过使用快捷指令的自动化功能,可以在开关这些 App 的同时,开关 Surge 的兼容模式。 ⚠️注意:HTTP API 不能直接切换兼容模式,需要通过控制模块开关实现,所以必须得创建1⃣️中的模块。 ⚠️注意:请注意使用,配置不当的情况下有可能导致长期开着兼容模式,会导致Surge把所有流量当成tcp处理,作用于http的高级功能会消失。有这种情况下请手动关闭兼容模式的模块 注:需订阅至 Surge 包含 HTTP API 功能。快捷指令App自动化需要iOS 14以上。 使用方法: 1⃣️ 创建Tun Only模块,复制以下内容到模块创建本地模块: #!name=Tun Only #!desc=兼容模式 #!system=ios [General] compatibility-mode = 3 2⃣️ 安装快捷指令: https://www.icloud.com/shortcuts/242e0f8281994bdba80eb42112502788 https://www.icloud.com/shortcuts/d982afccbc0e4dc794df24a9b8a06776 3⃣️ 配置文件配置好 HTTP API 如: [General] http-api = [email protected]:6166 并填入快捷指令对应栏目。 4⃣️创建快捷指令App自动化,打开和关闭app时,分别执行打开/关闭兼容模式的快捷指令。 5⃣️注意第一次运行的时候要给网络和通知权限。 开发不易,点个✨吧~ 如果发现有bug,欢迎反馈。 🔔频道: Cool Scripts 🧑🏻‍💻作者: @mieqq