Compare commits

..

443 Commits

Author SHA1 Message Date
GeekQu 12ccc306d8 +1 7 years ago
GeekQu 60e82fc07f 修改客户端下载链接 7 years ago
GeekQu e9fa797b25 修复 Shadowrocket ss-v2ray-plugin 节点的编码错误 7 years ago
GeekQu b24f68098e ss && ssd 7 years ago
GeekQu 77c7f2e8c9 fix 7 years ago
GeekQu 42cf1b8749 Create README.md 7 years ago
GeekQu 31b53a0052 getPcClient 7 years ago
GeekQu f955323d3c getPcClient 7 years ago
GeekQu 764b300582 修复 Surge 4 使用 Surge 2 规则的问题 7 years ago
GeekQu a8470bb0a3 修复缺失的判断 7 years ago
GeekQu 7a7ec8a192 分离 YAML2Array 7 years ago
GeekQu fea0fc9580 telegram 推送自定义设置 2 7 years ago
GeekQu 5bc4a557b7 修改 sendDiary_Msg 7 years ago
GeekQu 805e602d5a telegram 推送自定义设置 7 years ago
GeekQu a835ba415b Update ConfController.php 7 years ago
GeekQu ae58db22ee 术后修复 7 years ago
GeekQu 647efbecc7 Merge branch 'pr/41' into dev 7 years ago
Anankke 51a10a31b6
Merge pull request #838 from NS-Sp4ce/dev
修复安卓V2RayNG链接错误
7 years ago
Sp4ce 7fc7046290
修复安卓V2RayNG链接错误
修复安卓V2RayNG链接错误
7 years ago
GeekQu 44bcbbcb6f 修复 Base64_url_encode 带来的兼容问题 7 years ago
GeekQu 7a7a7d8044 2333 7 years ago
GeekQu 7516dfcf83 修复 Quantumult SS 订阅的兼容问题 7 years ago
GeekQu 87d178fd29 Update index.tpl 7 years ago
GeekQu 36799fc57b 为 Clash VMess 加入 udp 字段 7 years ago
GeekQu 9beb73c5a0 重写订阅中的用户账户到期及流量展示,现在可以在 Config 配置为订阅添加一些简短的公告了 7 years ago
GeekQu f4c1688f84 可移除 SS 节点名称中的站点名 7 years ago
GeekQu 53c9578796 解决 Quantumult SS 订阅提示无 group 的问题 7 years ago
GeekQu 6dab034a26 emoji 7 years ago
TheCGDF 275941191f V2rayU -> ssr-download 7 years ago
GeekQu 4a5b63fcfa Surge 4 以及 ClashR 显示 7 years ago
GeekQu 9486df11da 支持 Surge 的新特性 7 years ago
laurieryayoi ed70ab3ed8 替换update中的System_config为_ENV 7 years ago
GeekQu 9cfa7f5c79 审计封禁可添加例外用户 7 years ago
Regend Soh d747eedadd config: update default params(#829)
避免小白继续祸害各大运营商IP
7 years ago
GeekQu 00ba947172 喜迎国庆 +1s 7 years ago
錢爸爸 576e9e5b98
Update README.md 7 years ago
錢爸爸 8d5b103234
fix:Gravatar url 7 years ago
Anankke e42e5ee3e0 refactor: 129137b773 (r35233741) 7 years ago
SukkaW e1907e3b7b refactor(gravatar): minor updates 7 years ago
GeekQu 66030bbe3c 修复节点使用了端口偏移时 SSD 订阅的问题 7 years ago
GeekQu 191d1ccb57 修复资料编辑中的重置订阅链接以及切换配置 7 years ago
Regend Soh 8916041998 feat: add copy button for node SSR and SS link (#816)
* Add copy button for node SSR and SS link

* Remove unnecessary script
7 years ago
Regend Soh c92a52df64 feat: add function to display disable reason for disabled accounts (#815)
* Add disableReason Function

* Added disable reason based on 审计规则
7 years ago
錢爸爸 a7503a8207
Restore Gravatar function & Add set Avatar 7 years ago
錢爸爸 129137b773
Restore Gravatar function 7 years ago
Regend Soh 84ad7f2bf3 feat: add paid user count feature (#814)
* Add paidUserCount function

* Add display of paidUserCount
7 years ago
GeekQu cbd1c5b57f 修排版 7 years ago
GeekQu e6519b4ef1 修改默认 7 years ago
GeekQu be0cb7f93a 审计封禁 7 years ago
Regend Soh 89ea1b75d8 feat: add display income feature (#813)
* Adding income calculation function

Below functions are added:
- yesterday_income()
- today_income()
- this_month_income()
- last_month_income()
- total_income()

* Add income display on /admin/code page

Display the following information at /admin/code
- Today's income
- Yesterday's income
- This month's income
- Last month's income
- Total income

* Reformatting code style

Reformat the code, attempting to follow the standard required.

* Refactor to camel case naming

* Refactor to camel case naming

* Reformat due to spacing and tabbing issue
7 years ago
GeekQu a6df534356 fix 7 years ago
Anankke 797bd35f1b revert: "fix(init): remove default http forward header handle"
This reverts commit 040e987a
7 years ago
SakuraSa233 189bbf9026
fix(ci): sync test config file 7 years ago
SakuraSa233 91b2bf2016
feat(config): store config to $_ENV 7 years ago
SakuraSa233 fb8bd622fb
clean(services\config): unused env set function 7 years ago
SakuraSa233 040e987aa6
fix(init): remove default http forward header handle 7 years ago
Regend Soh badc98f29e feat(admin): add aff id change function
* 添加修改用户邀请者

* 添加 chginvite 路由

* 添加chgInvite function
7 years ago
Anankke 76d7d586d9
Merge pull request #807 from wewall/patch-2
fix error(user/index): rm obsolete code
7 years ago
围墙 bc05bb18ff
fix error(user/index): rm obsolete code 7 years ago
NimaQu 66f8d8bc8f
Update README.md 7 years ago
Anankke 85306ae54d
Merge pull request #803 from pang-w/dev
#801 修复暴力获取mu参数引发的错误。
7 years ago
Pw 8d5122c7b4 * 修复暴力获取mu参数引发的错误。
* 简单优化没有mu参数的逻辑。
7 years ago
GeekQu 2135c4c300 从 getAllItems 分离 SS V2RayPlugin 节点 7 years ago
GeekQu 8648e42477 加入用户订阅记录清理 7 years ago
GeekQu 5b3a57c5cc 优化可读性 7 years ago
GeekQu c29c14930a 修复使用 noclass 的问题 7 years ago
GeekQu db63baeb47 ??? 7 years ago
GeekQu 2373a4557a fix 7 years ago
GeekQu 6ecf279774 订阅可通过正则筛选节点 7 years ago
GeekQu 90fe6def61 ClashR 兼容性,用户手动修改订阅链接 clash=2 即可 7 years ago
GeekQu 11353c5364 Merge branch 'pr/39' into dev 7 years ago
GeekQu 4e6002fcd6 修复 7 years ago
GeekQu f1a7996979 现在可以配置为中转规则直接下发偏移后的端口了 7 years ago
GeekQu 4407015e46 现在可以配置为后端直接下发偏移后的端口了 7 years ago
GeekQu ed0d9fde04 优化流量耗尽用户限速至 1Mbps 7 years ago
GeekQu 99c70fa767 修改默认策略组更适合新手 7 years ago
GeekQu 10cc5c8764 fixed 7 years ago
GeekQu ec5091080f 修改 Surge、Clash、Surfboard 策略组 7 years ago
GeekQu e5f760e873 优化 Kitsunebi 订阅 7 years ago
GeekQu 49fea06df7 可选用户流量耗尽后不断网 7 years ago
GeekQu 593241432b 减少因为加密协议混淆同时支持 ss & ssr 而导致 Shadowrocket 订阅出现大量重复节点 7 years ago
GeekQu ddcbd4fa0f V2Ray、Shadowsocks - V2Ray-Plugin 节点默认单端口多用户 7 years ago
GeekQu 00eaeaf7b4
Merge branch 'dev' into dev 7 years ago
GeekQu 39d22fc924 用户订阅日志可选是否开启,开启请注意导入 user_subscribe_log.sql 7 years ago
GeekQu 175de83e40 用户可查询订阅记录 7 years ago
GeekQu 8b7258e25a Merge branch 'pr/38' into dev 7 years ago
Rico 8fbc2c8118
Update README.md 7 years ago
GeekQu fae633893b
Merge pull request #48 from GeekQu/dev
增加用户订阅日志,需导入 sql/user_subscribe_log.sql
7 years ago
GeekQu 0cdb8c46dc fix 7 years ago
GeekQu 2f69f5c405 用户订阅日志 7 years ago
GeekQu a8ebbdb2ae
Merge pull request #47 from GeekQu/dev
船新的 Clash 配置、修改 Surfboard SS 节点格式、V2Ray & Kitsunebi 订阅默认带账户及流量信息
7 years ago
GeekQu 52a26e797c 调整位置 7 years ago
GeekQu 3dd7da8260 +1s 7 years ago
GeekQu 9ea2db2d26 fixed 7 years ago
GeekQu 1142c08f39 船新的 Clash 配置 7 years ago
GeekQu b6c5854ef6 Clash ProxyGroup 去除无用策略组 7 years ago
GeekQu 56f2b20f61 Update ConfController.php 7 years ago
GeekQu 6704472ebe Update LinkController.php 7 years ago
GeekQu 9ddb296a35 Kitsunebi 支持账户到期时间以及流量信息 7 years ago
GeekQu d41e7bc0ff Surfboard SS 节点格式更改 7 years ago
GeekQu 2e0e0576c0 V2Ray 订阅默认带流量信息 7 years ago
GeekQu b531d16b6d
Merge pull request #46 from GeekQu/dev
接小火箭的锅
7 years ago
GeekQu 7a30b477ab Update LinkController.php 7 years ago
GeekQu 88dc5d283b
Merge pull request #45 from GeekQu/dev
修复小火箭订阅
7 years ago
GeekQu 106a5e8075 CFW 一件导入以及 SSR 订阅默认带流量信息 7 years ago
GeekQu 65d7b0cfa9 修复小火箭订阅 7 years ago
GeekQu f6d909a7d4 添加 ClashX 一键导入 7 years ago
GeekQu 073fb840e7
Merge pull request #44 from GeekQu/dev
修复 用户中心-资料编辑 的排版
7 years ago
GeekQu 6226e7f25d 修复 用户中心-资料编辑 的排版 7 years ago
GeekQu 24f796250b
Merge pull request #43 from GeekQu/dev
更新上游至 20190725 以及修复端口偏移的 bug
7 years ago
GeekQu b03cd3fb6e
Merge pull request #37 from Anankke/dev
Merge Anankke 0725
7 years ago
GeekQu 2bb31ec0da fix 7 years ago
GeekQu 4cb7770c58 Update URL.php 7 years ago
GeekQu 41c37ee92c Merge branch 'pr/37' into dev 7 years ago
GeekQu 043bf5c0c3
Merge pull request #42 from GeekQu/dev
部分修改以及增加对 NAT 节点端口偏移支持
7 years ago
GeekQu 06595e2abd
Merge branch 'dev' into dev 7 years ago
GeekQu d4cb600d0e 再次 7 years ago
GeekQu a9104e94e4 修复233 7 years ago
GeekQu 7666bc7a09 +1s 7 years ago
GeekQu 158c3f679f 端口偏移名称修改 7 years ago
GeekQu 026b7a8d26 修复缺失的判断 7 years ago
GeekQu 69959ba023 端口偏移 7 years ago
GeekQu cf1c00b592 +1s 7 years ago
GeekQu a9ed6a5461 Update Tools.php 7 years ago
GeekQu 0cce58cb49 Update ConfController.php 7 years ago
GeekQu 9762516919 Update LinkController.php 7 years ago
GeekQu 6da23df18e 修改 Clash DNS 7 years ago
Rico b5689528fa 取消去掉中止套餐 7 years ago
Rico ea9e0fcc57 排除已经中止的套餐 7 years ago
GeekQu c02568371b 文档中心增加 YAML 代码高亮 7 years ago
GeekQu 3f2e38eb75
Merge pull request #41 from GeekQu/dev
例行更新
7 years ago
GeekQu c4788c969e fix......
Clash SS 节点加入 UDP 字段

修复小火箭订阅信息

自定义 Clash 配置的规则也可从一个完整配置中获取
7 years ago
GeekQu 7411225038 修复一个因拷贝引起的问题 7 years ago
GeekQu 8276ac627b 修复逻辑错误 7 years ago
GeekQu a91ce6190b 更新规则 7 years ago
GeekQu 3567c49626 fix 7 years ago
GeekQu 4f1650e574 fix 7 years ago
GeekQu a7fde8d67f fix 7 years ago
GeekQu 419a0dd7f3 +1s 7 years ago
GeekQu 0d45487c3e +1s 8 years ago
GeekQu 24e4cbdd5e
Merge pull request #36 from Anankke/dev
Merge dev 20190628
8 years ago
GeekQu aeae454acb
Merge pull request #40 from GeekQu/dev
修复文档中心
8 years ago
GeekQu 96896839d6 修复文档中心 8 years ago
GeekQu 0a350999ad
Merge pull request #39 from GeekQu/dev
兼容 Android 以及 iOS 的 Kitsunebi 独立订阅
8 years ago
GeekQu 2b05de1963 +1s 8 years ago
GeekQu a17223aed7 +1s 8 years ago
GeekQu b9cd64341c fix 8 years ago
GeekQu 0f1ea0698b 优化以及 Kitsunebi 订阅 8 years ago
Rico 7041de630b add bitpayx wechat 8 years ago
GeekQu e234bf56a5
Merge pull request #38 from GeekQu/dev
TCP;TLS;
8 years ago
GeekQu 626576e0e2 fix 8 years ago
GeekQu 2fda57b291 fix 8 years ago
GeekQu c19ffcf57b tcp;tls; v2ray 8 years ago
GeekQu 87c76ab575 fix 8 years ago
Rico f5b8887457
Merge pull request #37 from GeekQu/dev
兼容后端改变以及小火箭的独立订阅
8 years ago
GeekQu e4bb1d905b +1s 8 years ago
GeekQu f902f21d74 对小火箭不输出 v2ray kcp 节点 8 years ago
GeekQu d4259c747d fix 8 years ago
GeekQu 56efadeab9 兼容后端修改,小火箭独立订阅地址 8 years ago
GeekQu 7dba302403 clash 配置兼容后端改变 8 years ago
GeekQu 3af14b7e45 Kitsunebi 订阅不输出 ss v2ray-plugin 节点 8 years ago
GeekQu 1413c3ea99
Merge pull request #36 from GeekQu/dev
更新上游代码;支持 Shadowrocket 的自定义信息展示
8 years ago
rico93 b70b06919e add bitpayx 8 years ago
rico93 ccba1508e4 add bitpayx 8 years ago
GeekQu c2c1ba9923 +1s 8 years ago
Rico 0ef22cd766 mergeMerge branch 'dev' of github.com:rico93/ss-panel-v3-mod_Uim into dev 8 years ago
Rico c82b4ddd43 设定clash skip-cert-verify=true 8 years ago
GeekQu 26dcd1fadc Merge branch 'pr/35' into dev 8 years ago
GeekQu 4ccc344d41 支持 Shadowrocket 的自定义信息展示,以及将访问 V2RayNG 订阅的 Quantumult 转到 Quantumult 的 V2Ray 专属订阅 8 years ago
GeekQu 6620b0bf51
Merge pull request #35 from GeekQu/dev
修复 Quantumult 无法跳转
8 years ago
GeekQu d36e1fdf00 修复 Quantumult 无法跳转 8 years ago
GeekQu bf2be4034c Merge branch 'pr/34' into dev 8 years ago
GeekQu 75caeab0df 增加修改记录 8 years ago
GeekQu 4d1bc0447d Update clash.tpl 8 years ago
GeekQu 37dba52f5d Clash 配置换回官方推荐端口 8 years ago
Rico f872f414ab 修复格式问题 8 years ago
Rico 4bd67f0218 修复第一个代理被Auto覆盖的问题 8 years ago
GeekQu 7b30b6da59 fixed bug 8 years ago
Rico 4aef671252 修复端口设置为0 或者空的时候 不切443 8 years ago
GeekQu 17c359ffdb Update LinkController.php 8 years ago
GeekQu 08fa92de9d
Merge pull request #33 from GeekQu/dev
20190604
8 years ago
GeekQu 59db2c4d24 Merge branch 'pr/34' into dev 8 years ago
GeekQu 7ec059d0d5 Update HomeController.php 8 years ago
GeekQu ac20d3c515 Merge branch 'pr/34' into dev 8 years ago
GeekQu e3bade965f 更改文档中心控制,可选不允许未登录用户查看文档 8 years ago
GeekQu 97140bf279 fixed bug 8 years ago
GeekQu dae12ba7b2 切换协议配置可选关闭 8 years ago
GeekQu e645d1de71 将重置订阅下移,减少不明所以然用户的误操作 8 years ago
GeekQu f3fbd0bc24 允许用户修改主题 8 years ago
GeekQu 840c6c331f 优化 +1 8 years ago
GeekQu f016cb66d2 文档中心控制
- 开启或关闭文档中心
- 可选从本地加载文档
- php xcat 新增下载使用文档至本地,请执行 php xcat initdocuments
8 years ago
Rico 0f5f4920ca
Merge pull request #32 from GeekQu/dev
Dev
8 years ago
GeekQu 29823b794f 去除不必要的设置 8 years ago
GeekQu 51ab3689d9 优化 +1 8 years ago
GeekQu d011bbdb2a Surge 自定义远程配置从 json 改为 yaml 格式 8 years ago
GeekQu 49d3a1607e 优化+1 8 years ago
GeekQu f201f3f2d1 优化+1 8 years ago
GeekQu 7b1e789cd0 Merge branch 'pr/32' into dev 8 years ago
GeekQu 7219d6a2db 修正 Clash -> ss 节点异常输出 obfs 配置 8 years ago
GeekQu 390de49768 fixed bug 8 years ago
GeekQu 957d0a5a39 fixed bug 8 years ago
GeekQu a7ce812f8a fixed bug 8 years ago
GeekQu 59a5fbfdbc 初步支持自定义 Clash 配置 8 years ago
GeekQu 7f1dc71403 fixed bug 8 years ago
GeekQu 3aaf83cbd4 远程配置中 Proxy 改为可选 8 years ago
GeekQu b8b6d8b823 应对可能发生的错误 8 years ago
GeekQu e2db566240 错误提示以及规则 8 years ago
GeekQu 1f508548ca Update ConfController.php 8 years ago
GeekQu 91f0653b1c 兼容性 8 years ago
GeekQu 75286ec582 再次修复 8 years ago
GeekQu 325ca64c14 修复手误 8 years ago
GeekQu 8f94685a46 初步支持自定义 Surge 配置 8 years ago
GeekQu 45ed0a8fd5 Merge branch 'pr/31' into dev 8 years ago
GeekQu b4e926560f 修正手贱 8 years ago
GeekQu 3e4102d3ef 判断使用新旧首页 8 years ago
GeekQu 36670677cb
新旧首页使用选项 8 years ago
GeekQu ed46405017
Merge pull request #31 from GeekQu/dev
20190501
8 years ago
GeekQu 57786798e2 iOS 账户显示 8 years ago
GeekQu e23072d3d8 Merge branch 'pr/30' into dev 8 years ago
GeekQu 3c2a0700f1 修正 SSR 订阅中有多余字符 8 years ago
GeekQu f57dff8ec6 适配 Quantumult 的自定义订阅头 8 years ago
GeekQu d15850302d 去除 Clash for Windows 中已经内置的 cfw-bypass 规则 8 years ago
GeekQu 8f5c6d9d6f Clash 托管 Proxy 策略组将 Auto 挪到最前方 8 years ago
GeekQu 83028efd22 修正中转节点含有 outside_port 的情况 8 years ago
GeekQu 039934513b Update ClientApiController.php 8 years ago
GeekQu 67b8c487de Merge branch 'pr/28' into dev 8 years ago
GeekQu e6e67d8b97 修正节点列表中的节点地址可能出现错误的情况 8 years ago
GeekQu e93a180a48 修正 Clash 托管中中文被转为 UNICODE 字符 8 years ago
GeekQu c57c1be6c2 修正 V2Ray 托管订阅会错误的输出节点 8 years ago
GeekQu 15739f4057 再次 8 years ago
GeekQu 18b0e97c08 优化用户中心展示 8 years ago
GeekQu 7b922d791c 添加修改 ss 连接密码会变更 V2Ray UUID 的提示 8 years ago
Rico d8c5160a61 继续修复 8 years ago
Rico 311a4d46c3 继续修复 8 years ago
Rico 8c49a0cbcc 继续修复 8 years ago
Rico 24c741f404 Merge branch 'A-dev' into dev 8 years ago
Rico 64c15cbf9c 修复端口为0或者空造成的中转问题 8 years ago
GeekQu b5137f1f46 加密协议混淆多方案切换 8 years ago
GeekQu ba1f4dff04 更新鸡肋功能支持VMess 8 years ago
GeekQu 88c15f87bc Merge branch 'pr/27' into dev 8 years ago
Rico 0180a58892 修改if判断代码风格 8 years ago
Rico b8ae004f8f 修改判断位置 8 years ago
Rico 3d086d3679 对每日数据重置用户做过滤,过滤掉有套餐在身的用户 8 years ago
Rico c5c28bbb15 Merge branch 'A-dev' into dev 8 years ago
Rico eed5502427 增加管理员添加用户和添加套餐的post api 8 years ago
Rico 9dd7121318 修复tag错误 8 years ago
GeekQu 03bd9d77d6 Merge branch 'pr/26' into dev 8 years ago
Rico 8b1cd924b7
Merge pull request #30 from Anankke/dev
update
8 years ago
GeekQu 1dcbbf54e9 Merge branch 'pr/29' into dev 8 years ago
Rico f9839183ec 修复ws;tls;的写法造成的 配置文件出错 8 years ago
GeekQu 394d7d87e7 修正历史错误 8 years ago
GeekQu ce09980d19 Update LinkController.php 8 years ago
GeekQu 7df036ab24 遗漏tcp+tls... 8 years ago
GeekQu 64b239ee86 修正错误 8 years ago
GeekQu 9022899efc 修正sort13的展示,更新v2节点的信息展示 8 years ago
GeekQu 2878c0a16f 修正 Clash v2 节点判断 8 years ago
Rico 7535eba114 修复clash配置问题 8 years ago
Rico 23c27c1ed9 增加节点状态展示,TODO节点配置展示 8 years ago
Rico a48ec0290a Merge branch 'GeekQu-dev' into dev
t push origin dev
8 years ago
Rico 973bed49fb Merge branch 'dev' of git://github.com/GeekQu/ss-panel-v3-mod_Uim into GeekQu-dev
增加v2ray ss+ws配置
# Conflicts:
#	app/Command/Job.php
#	app/Command/XCat.php
#	app/Controllers/RelayController.php
#	app/Controllers/UserController.php
#	resources/views/material/user/edit.tpl
8 years ago
GeekQu 99beccef07 修正 Quantumult、Surge 可以错误得到 ss-v2ray-plugin 节点 8 years ago
GeekQu 8fb7d952b1 修正判断错误 8 years ago
GeekQu e8a45491a1 修正Shadowsocks V2Ray-Plugin节点地址的格式,添加ssd订阅对v2ray-plugin的支持 8 years ago
GeekQu 1e95468860 修正上一个提交的逻辑错误 8 years ago
GeekQu 959ce76021 修复v2ray节点协议层使用tls时节点地址可以为IP 8 years ago
GeekQu 1ab551c81d 去除无用 8 years ago
GeekQu 628aa4ee24 Merge branch 'pr/23' into dev 8 years ago
GeekQu 3036497f0f 支持 ss-v2ray-plugin 类型节点
域名;端口;ws;tls;路径;额外参数
8 years ago
Rico 050ea4c784 修复中转端口判断的bug 8 years ago
GeekQu 640c73f9f5 更新 SurfBoard 策略组 8 years ago
Rico 54710c60ac 修复bug 8 years ago
Rico df9bdfb56c Merge branch 'dev' of github.com:rico93/ss-panel-v3-mod_Uim into dev
merge
8 years ago
Rico f01405182b Merge branch 'Anankke-dev' into dev
merge
8 years ago
Rico 4295dead69 Merge branch 'dev' of git://github.com/Anankke/ss-panel-v3-mod_Uim into Anankke-dev
# Conflicts:
#	resources/views/material/user/edit.tpl
#	resources/views/material/user/index.tpl
更新上游,并修复v2ray 中转节点有些信息不更新或者显示的问题
8 years ago
GeekQu c20b63c571
Merge pull request #26 from GeekQu/dev
更新
8 years ago
GeekQu 6931a05b7f 订阅链接兼容从上游面板切换到此面板 8 years ago
GeekQu 97203afb4d 修复 V2Ray 的节点地址可以被错误提交 8 years ago
GeekQu dcd09b9607
Merge pull request #22 from rico93/dev
Merge Rico
8 years ago
GeekQu b21ca25501 修复 Clash 配置中会输出 kcp 协议节点 8 years ago
Rico 191e3d19d8 修复如果端口设置成0的情况 8 years ago
Rico e2029b055e 修复TGbot quan的订阅问题 8 years ago
Rico 156cbcbf4e Merge branch 'GeekQu-dev' into dev
merge
8 years ago
Rico d4a790b44d Merge branch 'dev' of git://github.com/GeekQu/ss-panel-v3-mod_Uim into GeekQu-dev
merge
8 years ago
GeekQu feff60fbc7 修复Clash YAML配置中多余的空格以及当没有回国节点时导致的配置文件错误 8 years ago
GeekQu a6e39a784e 跟进 Clash 节点配置字段 8 years ago
GeekQu 67fb5512f3 Merge branch 'pr/21' into dev 8 years ago
Rico 9654c419ea Merge branch 'dev' of github.com:rico93/ss-panel-v3-mod_Uim into dev
merge
8 years ago
Rico 899597011e Merge branch 'Anankke-dev' into dev
# Conflicts:
#	resources/views/material/user/index.tpl
8 years ago
GeekQu 205076f62f Merge branch 'pr/20' into dev 8 years ago
Rico a75f665923
Merge pull request #23 from Anankke/dev
update
8 years ago
Rico 68686ef31f 修改提示语 8 years ago
Rico 7654c4f428 删掉update的rule 限制判断 8 years ago
GeekQu 9d3790d705 Merge branch 'pr/19' into dev 8 years ago
GeekQu 85c17b606d 更新 8 years ago
Rico dee3e5a94f 继续增加提示 8 years ago
Rico f630e40305 添加提示 8 years ago
Rico 3584d95d2a 增加v2ray中转字样,TODO replay的rule回复 8 years ago
Rico b9ace12177 增加v2节点负载信息显示 8 years ago
Rico 5ff854ed1d Merge branch 'Anankke-dev' into dev
merge upstream
8 years ago
Rico b6962cb8a0 Merge branch 'dev' of git://github.com/Anankke/ss-panel-v3-mod_Uim into Anankke-dev
# Conflicts:
#	app/Command/XCat.php
#	resources/views/material/user/index.tpl
8 years ago
GeekQu 5765cad5de Merge branch 'pr/18' into dev 8 years ago
GeekQu 0b63054d60 fix bug 8 years ago
GeekQu 98eced52fd 增加一些URL传参
增加一些URL传参

## Clash

- dns,1=开启、0=关闭,默认0
- secret,默认 MixsChina,如有设置将覆盖此值,请urlencode
- log-level,默认 silent,如有设置将覆盖此值
8 years ago
Rico 4392715a2f 暂时取消Load—Balance,Windows那还没跟进 8 years ago
Rico eb87a162f3 Quan 增加回国配置,将带有回国,CHINA字眼的节点,放入了Domestic中 8 years ago
Rico 3d03d1b5f8 Clash 增加回国设置, 默认节点带回国或者CHINA 则会放入回国的代理中。 如果在海外可以选择将China_media的代理选择成Back_China_proxy. 8 years ago
Rico c35a42d11c 尝试增加Load-Balance 8 years ago
GeekQu 49efc532cb Update main.tpl 8 years ago
GeekQu 8266caf023 首页的订阅链接修改 8 years ago
GeekQu 2ce018b32b fix bug 8 years ago
GeekQu a705e50003 Merge branch 'pr/17' into dev 8 years ago
GeekQu d65905ceeb mergeSub 去除的遗留问题 8 years ago
GeekQu 0c060eebc4 加回 ss & ssd 的全部 url 8 years ago
GeekQu 1b7096811b Merge branch 'pr/16' into dev 8 years ago
GeekQu 0d0884a2c2 Update HomeController.php 8 years ago
Rico 1233712f7b 增加nat 端口配置, 通过指定outside_port over write port设定 8 years ago
Rico 2de6520bcb Merge branch 'GeekQu-dev' into dev
合并代码
8 years ago
Rico e45cd77666 fix bug 8 years ago
Rico e779438ba1 fix bug 8 years ago
Rico 8f686a71a6 修改订阅链接 8 years ago
Rico 44a97c2d2d Merge branch 'dev' of git://github.com/GeekQu/ss-panel-v3-mod_Uim into GeekQu-dev
merge upstream
8 years ago
GeekQu 40352a78b1 统一代码 8 years ago
GeekQu 66da172baf fix bug 8 years ago
GeekQu 99cfe349b3 一键切换 SS/SSR 8 years ago
GeekQu 5a9e298a1f Merge branch 'pr/15' into dev 8 years ago
Rico 7254567432
Merge pull request #20 from Anankke/dev
update
8 years ago
GeekQu 8d0396c0f7
Merge pull request #14 from Anankke/dev
Merge
8 years ago
Rico 6358b2a624
Merge pull request #19 from Anankke/dev
merge
8 years ago
Rico a4ab934aeb
增加如果是127.0.0.1,的再一步查询 8 years ago
Rico 48b8b7b55d
增加127.0.0.1的处理,使用Google dns over https 8 years ago
Rico 4e243f6ec7
增加127.0.0.1的问题处理使用dns over https google 8 years ago
Rico 9041ef8a8a
忘记后缀了 8 years ago
Rico 400e416cb1
add php-dns example 8 years ago
Rico 45c6cc86ca
add php-dns 8 years ago
Rico 7d0f7f9329
add php-dns 8 years ago
Rico cab77cff36
add php-dns 8 years ago
Rico 0469e56fe4 test all 8 years ago
Rico b49f996731 test all 8 years ago
Rico 8a0331248f debug ip 增加一个iptest 8 years ago
Rico b9ba2c4214 debug ip 增加一个iptest 8 years ago
Rico 5ff6dca03a
Merge pull request #18 from Anankke/dev
merge
8 years ago
Rico b48eb0c9e9
Merge pull request #17 from Anankke/dev
merge
8 years ago
GeekQu d914a4c6dc
Merge pull request #13 from Anankke/dev
Merge
8 years ago
Rico 9ddfa1ac5f
Merge pull request #16 from Anankke/dev
merge
8 years ago
Rico 6ea6493a2b
Merge pull request #15 from Anankke/dev
merge
8 years ago
GeekQu 75f72c8f9d
Merge pull request #12 from Anankke/dev
Merge
8 years ago
GeekQu 00fc041dd5 Merge branch 'pr/11' into dev 8 years ago
Rico 55df0719bf
Merge pull request #14 from Anankke/dev
merge
8 years ago
GeekQu 06874d03aa 订阅链接汇总 8 years ago
Rico 7e8cb79859
Merge pull request #13 from Anankke/dev
merg upstream
8 years ago
GeekQu 8c80679383 订阅内的账户及流量信息改为可选,默认关闭 8 years ago
GeekQu a325e3a021 Update index.tpl 8 years ago
GeekQu d63163cfac Update index.tpl 8 years ago
GeekQu 32212752a3 去除多余的代码 8 years ago
GeekQu b1784ed021 Merge branch 'pr/10' into dev 8 years ago
GeekQu 7b959de95a 合并订阅 8 years ago
GeekQu 31ca966f2c fix bug , merge mu 8 years ago
Rico 677f29ef05
Merge pull request #12 from Anankke/dev
merge upstream
8 years ago
GeekQu 5668c17b6a Clash 减少代码复写并支持 ss_obfs 8 years ago
Rico 46b29a5b65
Merge pull request #11 from Anankke/dev
merge upstream
8 years ago
Rico 7999ae0129
Merge pull request #10 from Anankke/dev
merge upstream
8 years ago
GeekQu aed740d56e 去除增加的v2函数 8 years ago
GeekQu dcd6d5dfd1 Merge branch 'pr/9' into dev 8 years ago
Rico d3c023000d
Merge pull request #9 from Anankke/dev
merge upstream
8 years ago
GeekQu 4f958270e9 修复 Clash 策略组 Proxy 内无 Auto 8 years ago
GeekQu 6fd4e6e7f5 修复 Surge 分流规则重复以及局域网规则缺失 8 years ago
Rico bab87fd422
Merge pull request #8 from Anankke/dev
merge upstream
8 years ago
GeekQu be74ec1f79 fix 8 years ago
GeekQu f6d381685f Merge branch 'pr/8' into dev 8 years ago
GeekQu 67070bf176 Merge branch 'pr/7' into dev 8 years ago
GeekQu 387641637d Update index.tpl 8 years ago
Rico 8ff7cb11f7 Merge branch 'nimaqu_dev' into dev 8 years ago
Rico 7007f49db5 更新clash 配置文件 8 years ago
GeekQu 63ba85ae3a fix bug 8 years ago
GeekQu 26e770d7d7 fix bug 8 years ago
GeekQu 85364bda0f
Merge pull request #6 from NimaQu/dev
Merge
8 years ago
GeekQu 98c9f36b82 增加 sublink 返回信息 8 years ago
Rico 8d6f506282 Merge branch 'nimaqu_dev' into dev 8 years ago
Rico b0b5df3013 删除生成的订阅文件 8 years ago
GeekQu 4929e32748 ... 8 years ago
GeekQu 55499ce99e Merge branch 'pr/5' into dev 8 years ago
Rico 222a81933b 使用URL 跳转app. 8 years ago
Rico 08f2eb4c84 Merge branch 'nimaqu_dev' into dev 8 years ago
GeekQu d15098ad62 fix bug 8 years ago
GeekQu 702f35c491 fix bug 8 years ago
GeekQu 528ac809b3 fix bug 8 years ago
GeekQu e9b464d581 更新 8 years ago
GeekQu cfe7c1147f Merge branch 'nimaqu_dev' into dev 8 years ago
Rico 68300d2121 增加quant完整配置 8 years ago
GeekQu 9e891cd9ef 测着测着就忘记了… 8 years ago
Rico 88764cee0d 修改tg订阅回复格式 8 years ago
GeekQu fcd74b4d49 分离规则,方便后续更新 8 years ago
GeekQu 2ed98945f2
Create README.md 8 years ago
Rico 905420152c Merge branch 'nimaqu_dev' into dev
# Conflicts:
#	app/Utils/TelegramProcess.php
8 years ago
GeekQu 4a1b4ae7d3 Merge branch 'pr/4' into dev 8 years ago
Rico fc1576896b Merge branch 'nimaqu_dev' into dev 8 years ago
Rico 74559c735c Merge branch 'nimaqu_dev' into dev
# Conflicts:
#	app/Utils/TelegramProcess.php
8 years ago
Rico bf158f23be add dailyusageBYTG 8 years ago
Rico 04b3e25192 add tg id 8 years ago
Rico a40bc4b365 增加tg bot 订阅信息 8 years ago
Rico 617fa079ac Merge branch 'NimaQu-dev' into dev
merge
8 years ago
Rico e0ff14e7fc add console logs 8 years ago
Rico 23700cdc5d Merge branch 'NimaQu-dev' into dev
merge
8 years ago
Rico 41b8ba00ae clash 增加DNS, Quan本地化 8 years ago
Rico 55e553162b Merge branch 'dev' of git://github.com/NimaQu/ss-panel-v3-mod_Uim into NimaQu-dev
remve surge and merge upstream
8 years ago
GeekQu 125433fa98
Merge pull request #3 from NimaQu/dev
Merge
8 years ago
Rico 60922ee1dd
Merge pull request #6 from NimaQu/dev
merge upstream
8 years ago
GeekQu 457885c107 sub & soft 8 years ago
GeekQu 5e79bf9933 规则本地化 8 years ago
GeekQu bc89c0429d 修复 v2ray + ss 合并订阅的问题 8 years ago
GeekQu 86fe466187 修复 Quantumult、Surge、Surfboard 的 obfs 问题 8 years ago
GeekQu 9c3f0beb34 Clash 完善 8 years ago
GeekQu c00def709a 重置订阅移动到账户编辑 8 years ago
GeekQu ae7ded23c8 fix bug 8 years ago
GeekQu 7718e2b120
Merge pull request #2 from NimaQu/dev
merge
8 years ago
GeekQu 66641d1a41 fix bug… 8 years ago
GeekQu eb91a4a5b8 fix bug... 8 years ago
GeekQu ca20258e61 精简… 8 years ago
Rico d9ef21e1c6 删除多余文件 8 years ago
Rico dda526aa73 完善圈 8 years ago
Rico 258a45b867
Merge pull request #5 from NimaQu/dev
merge upstream
8 years ago
Rico fd461d70cd
Merge pull request #4 from GeekQu/dev
增加 Quantumult、Surge 支持
8 years ago
GeekQu 0749602694
Merge pull request #1 from NimaQu/dev
Merge
8 years ago
GeekQu ab34be7999 fix bug 8 years ago
Rico c91a2f4728
Merge pull request #3 from NimaQu/dev
merge upstream
8 years ago
Rico 840aa5ba1a 完成kitsunebi 8 years ago
Rico 2565093420 搞定,不是那么丑了,允许传入请求url,id,和跳转url 8 years ago
Rico b0eac09289 不算那么丑了 8 years ago
Rico b09a2939a8 暂时写了 获取的代码,但好丑 不怎么熟悉前端的我 8 years ago
GeekQu 30ce333c2d fix , add surge 8 years ago
GeekQu fbca65601e 增加 Quantumult 支持 8 years ago
GeekQu 32ac54ba59 增加 v2ray 函数 8 years ago
Rico 48aa909f8a 管理员可以查看节点信息 fixed 8 years ago
Rico 00df1bb19c 增加小火箭all in one 订阅 8 years ago
Rico 849953064f 管理员能够订阅所有节点,和能够查看所有节点,不受自己等级和group设置 8 years ago
Rico 248fab5b60 管理员能够看到所有节点 8 years ago
Rico e2f742eac9
Merge pull request #2 from NimaQu/dev
修复脑残写的BUG。。。
8 years ago
Rico 6e214fafb7
允许使用额外参数server
使用额外参数server重写第一个域名,因为可能大家会把节点隐藏在cdn后面
8 years ago
Rico 5e913cb11f
适配clash 的ws-path,默认是/ 8 years ago
Rico e22ba164fa
Merge pull request #1 from NimaQu/dev
merge upstream
8 years ago
Rico 0dd35d814e 删除不符合现在clash rule的参数 8 years ago
Rico 8d54e74e11 修复 path 带/ 转移后,clashx 不识别的问题 8 years ago
Rico e5d4af0be5 1. 添加Clash 首页展示。
2. 添加Clash ws-path key 设定。 因为考虑到可能大家会把节点隐藏在cdn之后,面板服务器如果使用第一个域名无法获得真实的ip地址,允许使用server=xxx, 来重写clash订阅的json。 举例: 未cdn域名;端口;alterId;tls;ws;path=/v2ray|server=cdn域名。 不加tls的格式 未cdn域名;端口;alterId;ws;tls;path=/v2ray|server=cdn域名
8 years ago

@ -0,0 +1,19 @@
根据时间从 2018 年 12 月始...
- 支持 Quantumult 格式的 V2Ray 订阅以及策略组配置导出
- 支持 Surge 2 & 3 的托管配置以及 policy group
- 支持 SurfBoard 的托管配置
- 支持 Shadowrocket 支持的 Shadowsocks(R) & VMess 合并订阅
- 提供用户使用文档
- 完全合并普通端口和单端口的订阅及托管
- ShadowsocksR 订阅中的账户及流量信息改为可选
- ~~一键切换 SS/SSR 加密、协议、混淆~~ (已废弃)
- 订阅链接兼容 Anankke
- ~~支持 ss-v2ray-plugin 类型节点~~ (已合并到 Anankke)
- V2Ray 订阅可选支持显示账户及流量信息
- 可选使用预定义的加密、协议、混淆配置方案
- 支持用户自定义 Surge 托管配置
- 支持用户自定义 Clash 托管配置
……

@ -18,6 +18,10 @@
SSPanel UIM 是一款专为 Shadowsocks / ShadowsocksR / V2Ray 设计的多用户管理面板,基于 ss-panel-v3-mod 开发。
## AD
**特别优惠 Malio SSPANEL 主题 + Rico V2Ray 后端,原价 1000 CNY,现在只需 899 CNY,👉[查看详情](https://malio.fxxkmy.life/)**
## 特性
- 集成超过 8 种支付系统
@ -47,7 +51,7 @@ SSPanel UIM 支持安装在 LNMP、宝塔面板、Plesk 面板、oneinstack 等
```
账号:admin
密码:admin
mukey=NimaQu
mukey ShirakamiFubuki
```
## 文档
@ -162,9 +166,7 @@ SSPanel UIM 离不开所有 [贡献代码](https://github.com/Anankke/SSPanel-Ui
#### galaxychuck
- [黛米付-支付接入](https://www.daimiyun.cn/register.php?aff=624)
- [冲上云霄云主机](http://console.soar-clouds.com/aff.php?aff=94)
- [Vultr](https://www.vultr.com/?ref=7205737)
- [hkserversolution-推荐UIM面板服务器放置](https://www.hkserversolution.com/aff.php?aff=60)
#### laurieryayoi

@ -52,11 +52,21 @@ class DailyMail
$sts = new Analytics();
Telegram::Send('各位老爷少奶奶,我来为大家报告一下系统今天的运行状况哈~' .
PHP_EOL .
'今日签到人数:' . $sts->getTodayCheckinUser() . PHP_EOL .
'今日使用总流量:' . Tools::flowAutoShow($lastday_total) . PHP_EOL .
'晚安~');
if (Config::get('sendDiary_Telegram') == 'true') {
Telegram::Send(
str_replace(
array(
'%getTodayCheckinUser%',
'%lastday_total%'
),
array(
$sts->getTodayCheckinUser(),
Tools::flowAutoShow($lastday_total)
),
Config::get('sendDiary_Msg')
)
);
}
}

@ -17,7 +17,11 @@ use App\Models\DetectLog;
use App\Models\BlockIp;
use App\Models\TelegramSession;
use App\Models\EmailVerify;
use App\Models\UserSubscribeLog;
use App\Models\DetectBanLog;
use App\Services\Config;
use App\Services\Password;
use App\Utils\DNSoverHTTPS;
use App\Utils\Radius;
use App\Utils\Tools;
use App\Services\Mail;
@ -122,6 +126,9 @@ class Job
$rule = preg_match("/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/", $node->server);
if (!$rule && (!$node->sort || $node->sort == 10 || $node->sort == 12 || $node->sort == 13)) {
$ip = gethostbyname($node->server);
if ($ip == "127.0.0.1"){
$ip = DNSoverHTTPS::gethostbyName($node->server);
}
$node->node_ip = $ip;
$node->save();
@ -143,6 +150,9 @@ class Job
}
}
// 清理订阅记录
UserSubscribeLog::where('request_time', '<', date('Y-m-d H:i:s', time() - 86400 * (int) Config::get('subscribeLog_keep_days')))->delete();
NodeInfoLog::where('log_time', '<', time() - 86400 * 3)->delete();
NodeOnlineLog::where('log_time', '<', time() - 86400 * 3)->delete();
TrafficLog::where('log_time', '<', time() - 86400 * 3)->delete();
@ -150,7 +160,10 @@ class Job
Speedtest::where('datetime', '<', time() - 86400 * 3)->delete();
EmailVerify::where('expire_in', '<', time() - 86400 * 3)->delete();
system('rm ' . BASE_PATH . '/storage/*.png', $ret);
Telegram::Send('姐姐姐姐,数据库被清理了,感觉身体被掏空了呢~');
if (Config::get('sendDailyJob_Telegram') == 'true') {
Telegram::Send(Config::get('sendDailyJob_Msg'));
}
//auto reset
$boughts = Bought::all();
@ -516,15 +529,25 @@ class Job
);
}
$notice_text = '喵喵喵~ ' . $node->name . ' 节点掉线了喵~域名解析被切换到了 ' . $Temp_node->name . ' 上了喵~';
$notice_text = str_replace(
array('%node_name%', '%Temp_node_name%'),
array($node->name, $Temp_node->name),
Config::get('sendNodeOffline_Update_Msg')
);
}
}
} else {
$notice_text = '喵喵喵~ ' . $node->name . ' 节点掉线了喵~';
$notice_text = str_replace(
'%node_name%',
$node->name,
Config::get('sendNodeOffline_Msg')
);
}
}
Telegram::Send($notice_text);
if (Config::get('sendNodeOffline_Telegram') == 'true') {
Telegram::Send($notice_text);
}
$myfile = fopen(
BASE_PATH . '/storage/' . $node->id . '.offline',
@ -604,13 +627,23 @@ class Job
}
}
$notice_text = '喵喵喵~ ' . $node->name . ' 节点恢复了喵~域名解析被切换回来了喵~';
$notice_text = str_replace(
'%node_name%',
$node->name,
Config::get('sendNodeOnline_Update_Msg')
);
} else {
$notice_text = '喵喵喵~ ' . $node->name . ' 节点恢复了喵~';
$notice_text = str_replace(
'%node_name%',
$node->name,
Config::get('sendNodeOnline_Msg')
);
}
}
Telegram::Send($notice_text);
if (Config::get('sendNodeOnline_Telegram') == 'true') {
Telegram::Send($notice_text);
}
unlink(BASE_PATH . '/storage/' . $node->id . '.offline');
}
@ -848,6 +881,14 @@ class Job
$user->class = 0;
}
// 审计封禁解封
if ($user->detect_ban == 1) {
$logs = DetectBanLog::where('user_id', $user->id)->orderBy("id", "desc")->first();
if (($logs->end_time + $logs->ban_time * 60) <= time() || $logs == null) {
$user->detect_ban = 0;
}
}
$user->save();
}
@ -957,14 +998,24 @@ class Job
$record_id
);
}
$notice_text = '喵喵喵~ ' . $node->name . ' 节点被墙了喵~域名解析被切换到了 ' . $Temp_node->name . ' 上了喵~';
$notice_text = str_replace(
array('%node_name%', '%Temp_node_name%'),
array($node->name, $Temp_node->name),
Config::get('sendNodeGFW_Update_Msg')
);
}
}
} else {
$notice_text = '喵喵喵~ ' . $node->name . ' 节点被墙了喵~';
$notice_text = str_replace(
'%node_name%',
$node->name,
Config::get('sendNodeGFW_Msg')
);
}
}
Telegram::Send($notice_text);
if (Config::get('sendNodeGFW_Telegram') == 'true') {
Telegram::Send($notice_text);
}
$file_node = fopen(BASE_PATH . '/storage/' . $node->id . '.gfw', 'wb+');
fclose($file_node);
} else {
@ -1017,12 +1068,22 @@ class Job
);
}
}
$notice_text = '喵喵喵~ ' . $node->name . ' 节点恢复了喵~域名解析被切换回来了喵~';
$notice_text = str_replace(
'%node_name%',
$node->name,
Config::get('sendNodeGFW_recover_Update_Msg')
);
} else {
$notice_text = '喵喵喵~ ' . $node->name . ' 节点恢复了喵~';
$notice_text = str_replace(
'%node_name%',
$node->name,
Config::get('sendNodeGFW_recover_Msg')
);
}
}
Telegram::Send($notice_text);
if (Config::get('sendNodeGFW_recover_Telegram') == 'true') {
Telegram::Send($notice_text);
}
unlink(BASE_PATH . '/storage/' . $node->id . '.gfw');
}
}

@ -8,7 +8,7 @@ class Update
{
public static function update($xcat)
{
global $System_Config;
global $_ENV;
$copy_result = copy(BASE_PATH . '/config/.config.php', BASE_PATH . '/config/.config.php.bak');
if ($copy_result == true) {
echo('备份成功' . PHP_EOL);
@ -33,17 +33,17 @@ class Update
$config_new = file_get_contents(BASE_PATH . '/config/.config.example.php');
//执行版本升级
$version_old = $System_Config['version'] ?? 0;
$version_old = $_ENV['version'] ?? 0;
self::old_to_new($version_old);
//将旧config迁移到新config上
$migrated = array();
foreach ($System_Config as $key => $value_reserve) {
foreach ($_ENV as $key => $value_reserve) {
if ($key == 'config_migrate_notice' || $key == 'version') {
continue;
}
$regex = '/System_Config\[\'' . $key . '\'\].*?;/s';
$regex = '/_ENV\[\'' . $key . '\'\].*?;/s';
$matches_new = array();
preg_match($regex, $config_new, $matches_new);
if (isset($matches_new[0]) == false) {
@ -55,18 +55,18 @@ class Update
preg_match($regex, $config_old, $matches_old);
$config_new = str_replace($matches_new[0], $matches_old[0], $config_new);
$migrated[] = 'System_Config[\'' . $key . '\']';
$migrated[] = '_ENV[\'' . $key . '\']';
}
echo(PHP_EOL);
//检查新增了哪些config
$regex_new = '/System_Config\[\'.*?\'\]/s';
$regex_new = '/_ENV\[\'.*?\'\]/s';
$matches_new_all = array();
preg_match_all($regex_new, $config_new, $matches_new_all);
$differences = array_diff($matches_new_all[0], $migrated);
foreach ($differences as $difference) {
if ($difference == 'System_Config[\'config_migrate_notice\']' ||
$difference == 'System_Config[\'version\']') {
if ($difference == '_ENV[\'config_migrate_notice\']' ||
$difference == '_ENV[\'version\']') {
continue;
}
//匹配注释
@ -95,7 +95,7 @@ class Update
echo('新增配置项通常带有默认值,因此通常即使不作任何改动网站也可以正常运行' . PHP_EOL);
//输出notice
$regex_notice = '/System_Config\[\'config_migrate_notice\'\].*?(?=\';)/s';
$regex_notice = '/_ENV\[\'config_migrate_notice\'\].*?(?=\';)/s';
$matches_notice = array();
preg_match($regex_notice, $config_new, $matches_notice);
$notice_new = $matches_notice[0];
@ -108,8 +108,8 @@ class Update
) + 1
);
echo('以下是迁移附注:');
if (isset($System_Config['config_migrate_notice'])) {
if ($System_Config['config_migrate_notice'] != $notice_new) {
if (isset($_ENV['config_migrate_notice'])) {
if ($_ENV['config_migrate_notice'] != $notice_new) {
echo($notice_new);
}
} else {

@ -16,6 +16,8 @@ use App\Utils\Discord;
use App\Services\Config;
use App\Utils\GA;
use App\Models\Node;
use App\Utils\DNSoverHTTPS;
use Exception;
use TelegramBot\Api\BotApi;
@ -85,6 +87,8 @@ class XCat
return Job::backup(true);
case ('initdownload'):
return $this->initdownload();
case ('initdocuments'):
return $this->initdocuments();
case ('updatedownload'):
return Job::updatedownload();
case ('cleanRelayRule'):
@ -93,15 +97,17 @@ class XCat
return $this->resetPort();
case ('resetAllPort'):
return $this->resetAllPort();
case ('update'):
return Update::update($this);
case ('update'):
return Update::update($this);
case ('sendDailyUsageByTG'):
return $this->sendDailyUsageByTG();
case ('npmbuild'):
case ('npmbuild'):
return $this->npmbuild();
case ('getCookie'):
return $this->getCookie();
default:
case ('iptest'):
return $this->iptest();
default:
return $this->defaultAction();
}
}
@ -117,6 +123,7 @@ class XCat
echo(' resetPort - 重置单个用户端口' . PHP_EOL);
echo(' resetAllPort - 重置所有用户端口' . PHP_EOL);
echo(' initdownload - 下载 SSR 程序至服务器' . PHP_EOL);
echo(' initdocuments - 下载用户使用文档至服务器' . PHP_EOL);
echo(' initQQWry - 下载 IP 解析库' . PHP_EOL);
echo(' resetTraffic - 重置所有用户流量' . PHP_EOL);
echo(' update - 更新并迁移配置' . PHP_EOL);
@ -178,6 +185,12 @@ class XCat
echo $ret;
}
public function initdocuments()
{
system('git clone https://github.com/GeekQu/PANEL_DOC.git ' . BASE_PATH . "/public/docs/", $ret);
echo $ret;
}
public function createAdmin()
{
if (count($this->argv) === 2) {
@ -322,12 +335,30 @@ class XCat
}
}
public function npmbuild()
public function npmbuild(){
chdir(BASE_PATH . '/uim-index-dev');
system('npm install');
system('npm run build');
system('cp -u ../public/vuedist/index.html ../resources/views/material/index.tpl');
}
public function iptest()
{
chdir(BASE_PATH . '/uim-index-dev');
system('npm install');
system('npm run build');
system('cp -u ../public/vuedist/index.html ../resources/views/material/index.tpl');
$nodes = Node::all();
foreach ($nodes as $node) {
$ip = "";
$server = "";
if (in_array($node->sort, array(0, 1, 10, 11, 12, 13))) {
$server_list = explode(";", $node->server);
$server = $server_list[0];
if (!Tools::is_ip($server)) {
$ip = DNSoverHTTPS::gethostbyName($server); // returns a collection of DNS A Records
}
}
if ($server!="" and $ip !="") {
echo "Server: ".$server." ip address: ".$ip."\n";
}
}
}
public function getCookie()

@ -0,0 +1,43 @@
<?php
namespace App\Controllers\Admin;
use App\Controllers\AdminController;
use Ozdemir\Datatables\Datatables;
use App\Utils\DatatablesHelper;
class DetectBanLogController extends AdminController
{
public function index($request, $response, $args)
{
$table_config['total_column'] = array("id" => "ID", "user_id" => "用户ID",
"user_name" => "用户名", "email" => "用户邮箱",
"detect_number" => "违规次数", "ban_time" => "封禁时长(分钟)",
"start_time" => "统计开始时间", "end_time" => "统计结束以及封禁开始时间",
"ban_end_time" => "封禁结束时间", "all_detect_number" => "累计违规次数");
$table_config['default_show_column'] = array();
foreach ($table_config['total_column'] as $column => $value) {
array_push($table_config['default_show_column'], $column);
}
$table_config['ajax_url'] = 'ban/ajax';
return $this->view()->assign('table_config', $table_config)->display('admin/detect/ban.tpl');
}
public function ajax_log($request, $response, $args)
{
$datatables = new Datatables(new DatatablesHelper());
$datatables->query('Select detect_ban_log.id,detect_ban_log.user_id,detect_ban_log.user_name,detect_ban_log.email,detect_ban_log.detect_number,detect_ban_log.ban_time,detect_ban_log.start_time,detect_ban_log.end_time,detect_ban_log.all_detect_number,detect_ban_log.end_time as ban_end_time from detect_ban_log');
$datatables->edit('start_time', function ($data) {
return date('Y-m-d H:i:s', $data['start_time']);
});
$datatables->edit('end_time', function ($data) {
return date('Y-m-d H:i:s', $data['end_time']);
});
$datatables->edit('ban_end_time', function ($data) {
return date('Y-m-d H:i:s', $data['ban_end_time']+$data['ban_time']*60);
});
$body = $response->getBody();
$body->write($datatables->generate());
}
}

@ -11,6 +11,7 @@ use App\Utils\CloudflareDriver;
use App\Services\Config;
use Ozdemir\Datatables\Datatables;
use App\Utils\DatatablesHelper;
use App\Utils\DNSoverHTTPS;
class NodeController extends AdminController
{
@ -63,6 +64,9 @@ class NodeController extends AdminController
$server_list = explode(';', $node->server);
if (!Tools::is_ip($server_list[0])) {
$node->node_ip = gethostbyname($server_list[0]);
if ($node->node_ip == "127.0.0.1") {
$node->node_ip = DNSoverHTTPS::gethostbyName($server_list[0]);
}
} else {
$node->node_ip = $req_node_ip;
}
@ -82,6 +86,10 @@ class NodeController extends AdminController
$node->node_bandwidth_limit = $request->getParam('node_bandwidth_limit') * 1024 * 1024 * 1024;
$node->bandwidthlimit_resetday = $request->getParam('bandwidthlimit_resetday');
if (in_array($node->sort, array(11, 12, 13))) {
$node->mu_only = 1;
}
$node->save();
$domain_name = explode('.' . Config::get('cloudflare_name'), $node->server);
@ -89,7 +97,15 @@ class NodeController extends AdminController
CloudflareDriver::updateRecord($domain_name[0], $node->node_ip);
}
Telegram::Send('新节点添加~' . $request->getParam('name'));
if (Config::get('sendAddNode_Telegram') == 'true') {
Telegram::Send(
str_replace(
'%node_name%',
$request->getParam('name'),
Config::get('sendAddNode_Msg')
)
);
}
$rs['ret'] = 1;
$rs['msg'] = '节点添加成功';
@ -152,10 +168,18 @@ class NodeController extends AdminController
$SS_Node = Node::where('sort', '=', 0)->where('server', '=', $request->getParam('server'))->first();
if ($SS_Node != null) {
if ($SS_Node->node_heartbeat == 0 || time() - $SS_Node->node_heartbeat < 300) {
Radius::AddNas(gethostbyname($request->getParam('server')), $request->getParam('server'));
$ip = gethostbyname($request->getParam('server'));
if ($ip == '127.0.0.1') {
$ip = DNSoverHTTPS::gethostbyName($request->getParam('server'));
}
Radius::AddNas($ip, $request->getParam('server'));
}
} else {
Radius::AddNas(gethostbyname($request->getParam('server')), $request->getParam('server'));
$ip = gethostbyname($request->getParam('server'));
if ($ip == "127.0.0.1") {
$ip = DNSoverHTTPS::gethostbyName($request->getParam('server'));
}
Radius::AddNas($ip, $request->getParam('server'));
}
}
@ -164,9 +188,21 @@ class NodeController extends AdminController
$node->node_bandwidth_limit = $request->getParam('node_bandwidth_limit') * 1024 * 1024 * 1024;
$node->bandwidthlimit_resetday = $request->getParam('bandwidthlimit_resetday');
if (in_array($node->sort, array(11, 12, 13))) {
$node->mu_only = 1;
}
$node->save();
Telegram::Send('节点信息被修改~' . $request->getParam('name'));
if (Config::get('sendUpdateNode_Telegram') == 'true') {
Telegram::Send(
str_replace(
'%node_name%',
$request->getParam('name'),
Config::get('sendUpdateNode_Msg')
)
);
}
$rs['ret'] = 1;
$rs['msg'] = '修改成功';
@ -182,15 +218,21 @@ class NodeController extends AdminController
Radius::DelNas($node->node_ip);
}
$name = $node->name;
if (!$node->delete()) {
$rs['ret'] = 0;
$rs['msg'] = '删除失败';
return $response->getBody()->write(json_encode($rs));
}
Telegram::Send('节点被删除~' . $name);
if (Config::get('sendDeleteNode_Telegram') == 'true') {
Telegram::Send(
str_replace(
'%node_name%',
$node->name,
Config::get('sendDeleteNode_Msg')
)
);
}
$rs['ret'] = 1;
$rs['msg'] = '删除成功';

@ -52,7 +52,7 @@ class RelayController extends AdminController
foreach ($dist_nodes as $node) {
if ($node->sort == 11 || $node->sort == 12) {
$node_explode = Tools::ssv2Array($node->server);
$node_explode = Tools::v2Array($node->server);
$node->name = $node->name . ' 如果是V2ray后端 请设置成 ' . $node_explode['port'];
} else {
$node->name .= ' 如果是V2ray后端 请不要设置,用户页面设置 ';
@ -163,7 +163,7 @@ class RelayController extends AdminController
foreach ($dist_nodes as $node) {
if ($node->sort == 11 || $node->sort == 12) {
$node_explode = Tools::ssv2Array($node->server);
$node_explode = Tools::v2Array($node->server);
$node->name = $node->name . ' 如果是V2ray后端 请设置成' . $node_explode['port'];
} else {
$node->name .= ' 如果是V2ray后端 请不要设置,用户页面设置 ';

@ -0,0 +1,41 @@
<?php
namespace App\Controllers\Admin;
use App\Controllers\AdminController;
use App\Utils\QQWry;
use Ozdemir\Datatables\Datatables;
use App\Utils\DatatablesHelper;
class SubscribeLogController extends AdminController
{
public function index($request, $response, $args)
{
$table_config['total_column'] = array('id' => 'ID', 'user_name' => '用户名',
'user_id' => '用户ID', 'email' => '用户邮箱', 'subscribe_type' => '类型',
'request_ip' => 'IP', 'location' => '归属地', 'request_time' => '时间',
'request_user_agent' => 'User-Agent');
$table_config['default_show_column'] = array();
foreach ($table_config['total_column'] as $column => $value) {
$table_config['default_show_column'][] = $column;
}
$table_config['ajax_url'] = 'subscribe/ajax';
return $this->view()->assign('table_config', $table_config)->display('admin/subscribe.tpl');
}
public function ajax_subscribe_log($request, $response, $args)
{
$datatables = new Datatables(new DatatablesHelper());
$datatables->query('Select user_subscribe_log.id,user_subscribe_log.user_name,user_subscribe_log.user_id,user_subscribe_log.email,user_subscribe_log.subscribe_type,user_subscribe_log.request_ip,user_subscribe_log.request_ip as location,user_subscribe_log.request_time,user_subscribe_log.request_user_agent from user_subscribe_log');
$iplocation = new QQWry();
$datatables->edit('location', static function ($data) use ($iplocation) {
$location = $iplocation->getlocation($data['location']);
return iconv('gbk', 'utf-8//IGNORE', $location['country'] . $location['area']);
});
$body = $response->getBody();
$body->write($datatables->generate());
}
}

@ -6,6 +6,7 @@ use App\Models\User;
use App\Models\Ip;
use App\Models\Bought;
use App\Models\Relay;
use App\Models\DetectBanLog;
use App\Controllers\AdminController;
use App\Services\Config;
use App\Services\Auth;
@ -19,6 +20,7 @@ use App\Utils\Tools;
use App\Utils\GA;
use Exception;
class UserController extends AdminController
{
public function index($request, $response, $args)
@ -326,6 +328,33 @@ class UserController extends AdminController
$user->forbidden_ip = str_replace(PHP_EOL, ',', $request->getParam('forbidden_ip'));
$user->forbidden_port = str_replace(PHP_EOL, ',', $request->getParam('forbidden_port'));
$detect_ban = (int)$request->getParam('detect_ban');
// 手动解封
if ($user->detect_ban == 1 && $detect_ban == 0) {
$user->detect_ban = 0;
}
// 手动封禁
if ($user->detect_ban == 0 && $detect_ban == 1) {
if ((int)$request->getParam('ban_time') == 0) {
$rs['ret'] = 0;
$rs['msg'] = "修改失败,封禁时长不能为 0";
return $response->getBody()->write(json_encode($rs));
}
$user->detect_ban = 1;
$end_time = date('Y-m-d H:i:s');
$user->last_detect_ban_time = $end_time;
$DetectBanLog = new DetectBanLog();
$DetectBanLog->user_name = $user->user_name;
$DetectBanLog->user_id = $user->id;
$DetectBanLog->email = $user->email;
$DetectBanLog->detect_number = '0';
$DetectBanLog->ban_time = (int)$request->getParam('ban_time');
$DetectBanLog->start_time = strtotime('1989-06-04 00:05:00');
$DetectBanLog->end_time = strtotime($end_time);
$DetectBanLog->all_detect_number = $user->all_detect_number;
$DetectBanLog->save();
}
if (!$user->save()) {
$rs['ret'] = 0;
$rs['msg'] = '修改失败';

@ -30,7 +30,6 @@ class AdminController extends UserController
return $this->view()->assign('nodes', $nodes)->display('admin/node.tpl');
}
public function editConfig($request, $response, $args)
{
return (new ChenPay())->editConfig();
@ -60,7 +59,34 @@ class AdminController extends UserController
$table_config['ajax_url'] = 'payback/ajax';
return $this->view()->assign('table_config', $table_config)->display('admin/invite.tpl');
}
public function chgInvite($request, $response, $args)
{
$prefix = $request->getParam('prefix');
if ($request->getParam('userid')!=NULL && $request->getParam('refid')!=NULL) {
if (strpos($request->getParam('userid'), "@")!=false) {
$user=User::where("email", "=", $request->getParam('userid'))->first();
} else {
$user=User::Where("id", "=", $request->getParam('userid'))->first();
}
if ($user==null) {
$res['ret'] = 0;
$res['msg'] = "邀请者更改失败,检查用户id是否输入正确";
return $response->getBody()->write(json_encode($res));
}
$uid = $user->id;
} else {
$uid=0;
}
$user->ref_by = $request->getParam('refid');
$user->save();
$res['ret'] = 1;
$res['msg'] = "邀请者更改成功";
return $response->getBody()->write(json_encode($res));
}
public function addInvite($request, $response, $args)
{
$num = $request->getParam('num');

@ -56,17 +56,16 @@ class ClientApiController extends BaseController
public function GetSubLink($request, $response, $args)
{
$accessToken = Helper::getParam($request, 'access_token');
$sub = (Helper::getParam($request, 'sub') != ''
? Helper::getParam($request, 'sub')
: 1);
$storage = Factory::createTokenStorage();
$token = $storage->get($accessToken);
$user = User::find($token->userId);
$ssr_sub_token = LinkController::GenerateSSRSubCode($user->id, 0);
$mu = 0;
if ($request->getQueryParams()['mu'] != '') {
$mu = $request->getQueryParams()['mu'];
}
$res['ret'] = 1;
$res['msg'] = 'ok';
$res['data'] = Config::get('subUrl') . $ssr_sub_token . '?mu=' . $mu;
$res['data'] = Config::get('subUrl') . $ssr_sub_token . '?sub=' . $sub;
return $this->echoJson($response, $res);
}
}

@ -0,0 +1,575 @@
<?php
/**
* 部分应用自定义配置
*
* PHP version 7.2+
*
* @category GeekQu
* @package App/Controllers/ConfController
* @author GeekQu <iloves@live.com>
* @license MIT https://github.com/GeekQu/ss-panel-v3-mod_Uim/blob/dev/LICENSE
* @link https://github.com/GeekQu
*/
namespace App\Controllers;
use App\Models\User;
use App\Services\Config;
use App\Utils\ConfRender;
use Symfony\Component\Yaml\Yaml;
use Symfony\Component\Yaml\Exception\ParseException;
/**
* ConfController
*
* @category GeekQu
* @package App/Controllers/ConfController
* @author GeekQu <iloves@live.com>
* @license MIT https://github.com/GeekQu/ss-panel-v3-mod_Uim/blob/dev/LICENSE
* @link https://github.com/GeekQu
*/
class ConfController extends BaseController
{
/**
* YAML 转数组
*
* @param string $Content YAML 字符串
*
* @return string
*/
public static function YAML2Array($Content)
{
try {
return Yaml::parse($Content);
} catch (ParseException $exception) {
return printf('无法解析 YAML 字符串: %s', $exception->getMessage());
}
}
/**
* 从远端自定义配置文件生成 Surge 托管配置
*
* @param object $User 用户
* @param string $AllProxys Surge 格式的全部节点
* @param array $Nodes 全部节点数组
* @param string $SourceContent 远程配置内容
*
* @return string
*/
public static function getSurgeConfs($User, $AllProxys, $Nodes, $Configs, $local = false)
{
$General = self::getSurgeConfGeneral($Configs['General']);
$Proxys = (isset($Configs['Proxy'])
? self::getSurgeConfProxy($Configs['Proxy'])
: '');
if (isset($Configs['Proxy Group'])) {
$Configs['ProxyGroup'] = $Configs['Proxy Group'];
}
$ProxyGroups = self::getSurgeConfProxyGroup(
$Nodes,
$Configs['ProxyGroup']
);
$ProxyGroup = self::getSurgeProxyGroup2String($ProxyGroups);
$Rule = self::getSurgeConfRule($Configs['Rule'], $local);
$Conf = '#!MANAGED-CONFIG '
. Config::get('baseUrl') . $_SERVER['REQUEST_URI'] .
"\n\n#---------------------------------------------------#" .
"\n## 上次更新于:" . date("Y-m-d h:i:s") .
"\n#---------------------------------------------------#" .
"\n\n[General]"
. $General .
"\n\n[Proxy]\n"
. $AllProxys . $Proxys .
"\n\n[Proxy Group]"
. $ProxyGroup .
"\n\n[Rule]\n"
. $Rule;
return $Conf;
}
/**
* Surge 配置中的 General
*
* @param array $General Surge General 定义
*
* @return string
*/
public static function getSurgeConfGeneral($General)
{
$return = '';
if (count($General) != 0) {
foreach ($General as $key => $value) {
$return .= "\n$key = $value";
}
}
return $return;
}
/**
* Surge 配置中的 Proxy
*
* @param array $Proxys 自定义配置中的额外 Proxy
*
* @return string
*/
public static function getSurgeConfProxy($Proxys)
{
$return = '';
if (count($Proxys) != 0) {
foreach ($Proxys as $value) {
if (!preg_match('/(\[General|Replica|Proxy|Proxy\sGroup|Rule|Host|URL\sRewrite|Header\sRewrite|MITM|Script\])/', $value)) {
$return .= "\n$value";
}
}
}
return $return;
}
/**
* Surge 配置中的 ProxyGroup
*
* @param array $Nodes 全部节点数组
* @param array $ProxyGroups Surge 策略组定义
*
* @return array
*/
public static function getSurgeConfProxyGroup($Nodes, $ProxyGroups)
{
$return = [];
foreach ($ProxyGroups as $ProxyGroup) {
if (in_array($ProxyGroup['type'], ['select', 'url-test', 'fallback'])) {
$proxies = [];
if (
isset($ProxyGroup['content']['left-proxies'])
&& count($ProxyGroup['content']['left-proxies']) != 0
) {
$proxies = $ProxyGroup['content']['left-proxies'];
}
foreach ($Nodes as $item) {
$item = self::getMatchProxy($item, $ProxyGroup);
if ($item !== null && !in_array($item['remark'], $proxies)) {
$proxies[] = $item['remark'];
}
}
if (isset($ProxyGroup['content']['right-proxies'])) {
$proxies = array_merge($proxies, $ProxyGroup['content']['right-proxies']);
}
$ProxyGroup['proxies'] = $proxies;
}
$return[] = $ProxyGroup;
}
return $return;
}
/**
* 获取匹配的节点
*
* @param array $Proxy 节点
* @param array $Rule 匹配规则
*
* @return array
*/
public static function getMatchProxy($Proxy, $Rule)
{
$return = null;
switch (true) {
case (isset($Rule['content']['class'])):
if ($Proxy['class'] == $Rule['content']['class']) {
if (isset($Rule['content']['regex'])) {
if (preg_match('/' . $Rule['content']['regex'] . '/i', $Proxy['remark'])) {
$return = $Proxy;
}
} else {
$return = $Proxy;
}
}
break;
case (isset($Rule['content']['noclass'])):
if ($Proxy['class'] != $Rule['content']['noclass']) {
if (isset($Rule['content']['regex'])) {
if (preg_match('/' . $Rule['content']['regex'] . '/i', $Proxy['remark'])) {
$return = $Proxy;
}
} else {
$return = $Proxy;
}
}
break;
case (!isset($Rule['content']['class'])
&& !isset($Rule['content']['noclass'])
&& isset($Rule['content']['regex'])
&& preg_match('/' . $Rule['content']['regex'] . '/i', $Proxy['remark'])
):
$return = $Proxy;
break;
}
return $return;
}
/**
* Surge ProxyGroup 去除无用策略组
*
* @param array $ProxyGroups 策略组
* @param array $checks 要检查的策略组名
*
* @return array
*/
public static function fixSurgeProxyGroup($ProxyGroups, $checks)
{
if (count($checks) == 0) {
return $ProxyGroups;
}
$clean_names = [];
$newProxyGroups = [];
foreach ($ProxyGroups as $ProxyGroup) {
if (in_array($ProxyGroup['name'], $checks) && count($ProxyGroup['proxies']) == 0) {
$clean_names[] = $ProxyGroup['name'];
continue;
}
$newProxyGroups[] = $ProxyGroup;
}
if (count($clean_names) >= 1) {
$ProxyGroups = $newProxyGroups;
$newProxyGroups = [];
foreach ($ProxyGroups as $ProxyGroup) {
if (!in_array($ProxyGroup['name'], $checks) && $ProxyGroup['type'] != 'ssid') {
$newProxies = [];
foreach ($ProxyGroup['proxies'] as $proxie) {
if (!in_array($proxie, $clean_names)) {
$newProxies[] = $proxie;
}
}
$ProxyGroup['proxies'] = $newProxies;
}
$newProxyGroups[] = $ProxyGroup;
}
}
return $newProxyGroups;
}
/**
* Surge ProxyGroup 转字符串
*
* @param array $ProxyGroups Surge 策略组定义
*
* @return string
*/
public static function getSurgeProxyGroup2String($ProxyGroups)
{
$return = '';
foreach ($ProxyGroups as $ProxyGroup) {
$str = '';
if (in_array($ProxyGroup['type'], ['select', 'url-test', 'fallback'])) {
$proxies = implode(', ', $ProxyGroup['proxies']);
if (in_array($ProxyGroup['type'], ['url-test', 'fallback'])) {
$str .= ($ProxyGroup['name']
. ' = '
. $ProxyGroup['type']
. ', '
. $proxies
. ', url = ' . $ProxyGroup['url']
. ', interval = ' . $ProxyGroup['interval']);
} else {
$str .= ($ProxyGroup['name']
. ' = '
. $ProxyGroup['type']
. ', '
. $proxies);
}
} elseif ($ProxyGroup['type'] == 'ssid') {
$wifi = '';
foreach ($ProxyGroup['content'] as $key => $value) {
$wifi .= ', "' . $key . '" = ' . $value;
}
$cellular = (isset($ProxyGroup['cellular'])
? ', cellular = ' . $ProxyGroup['cellular']
: '');
$str .= ($ProxyGroup['name']
. ' = '
. $ProxyGroup['type']
. ', default = '
. $ProxyGroup['default']
. $cellular
. $wifi);
} else {
$str .= '';
}
$return .= "\n$str";
}
return $return;
}
/**
* Surge 配置中的 Rule
*
* @param array $Rules Surge 规则加载地址
*
* @return string
*/
public static function getSurgeConfRule($Rules, $local)
{
// 加载本地规则文件
if ($local) {
$render = ConfRender::getTemplateRender();
return $render->fetch(trim($Rules['source']));
}
// 加载远程规则文件
$return = '';
if (isset($Rules['source']) && $Rules['source'] != '') {
$sourceURL = trim($Rules['source']);
// 远程规则仅支持 github 以及 gitlab
if (preg_match('/^https:\/\/((gist\.)?github\.com|raw\.githubusercontent\.com|gitlab\.com)/i', $sourceURL)) {
$return = @file_get_contents($sourceURL);
if (!$return) {
$return = ('// 远程规则加载失败'
. PHP_EOL
. 'GEOIP,CN,DIRECT'
. PHP_EOL
. 'FINAL,DIRECT,dns-failed');
}
} else {
$return = ('// 远程规则仅支持 github 以及 gitlab'
. PHP_EOL
. 'GEOIP,CN,DIRECT'
. PHP_EOL
. 'FINAL,DIRECT,dns-failed');
}
}
return $return;
}
/**
* 从远端自定义配置文件生成 Clash 配置
*
* @param object $User 用户
* @param array $AllProxys 全部节点数组
* @param string $SourceContent 远程配置内容
*
* @return string
*/
public static function getClashConfs($User, $AllProxys, $Configs, $local = false)
{
if (isset($Configs['Proxy']) || count($Configs['Proxy']) != 0) {
$tmpProxys = array_merge($AllProxys, $Configs['Proxy']);
} else {
$tmpProxys = $AllProxys;
}
$Proxys = [];
foreach ($tmpProxys as $Proxy) {
unset($Proxy['class']);
$Proxys[] = $Proxy;
}
$tmp = self::getClashConfGeneral($Configs['General']);
$tmp['Proxy'] = $Proxys;
if (isset($Configs['ProxyGroup'])) {
$tmp['Proxy Group'] = self::getClashConfProxyGroup(
$AllProxys,
$Configs['ProxyGroup']
);
} else {
$tmp['Proxy Group'] = self::getClashConfProxyGroup(
$AllProxys,
$Configs['Proxy Group']
);
}
$Conf = '#!MANAGED-CONFIG '
. Config::get('baseUrl') . $_SERVER['REQUEST_URI'] .
"\n\n#---------------------------------------------------#" .
"\n## 上次更新于:" . date("Y-m-d h:i:s") .
"\n#---------------------------------------------------#" .
"\n\n"
. Yaml::dump($tmp, 4, 2) .
"\n\n"
. self::getClashConfRule($Configs['Rule'], $local);
return $Conf;
}
/**
* Clash 配置中的 General
*
* @param array $General Clash General 定义
*
* @return array
*/
public static function getClashConfGeneral($General)
{
if (count($General) != 0) {
foreach ($General as $key) {
if (in_array(
$key,
[
'Proxy',
'Proxy Group',
'Rule'
]
)) {
unset($key);
}
}
}
return $General;
}
/**
* Clash 配置中的 ProxyGroup
*
* @param array $Nodes 全部节点数组
* @param array $ProxyGroups Clash 策略组定义
*
* @return array
*/
public static function getClashConfProxyGroup($Nodes, $ProxyGroups)
{
$return = [];
foreach ($ProxyGroups as $ProxyGroup) {
$tmp = [];
if (in_array($ProxyGroup['type'], ['select', 'url-test', 'fallback', 'load-balance'])) {
$proxies = [];
if (
isset($ProxyGroup['content']['left-proxies'])
&& count($ProxyGroup['content']['left-proxies']) != 0
) {
$proxies = $ProxyGroup['content']['left-proxies'];
}
foreach ($Nodes as $item) {
$item['remark'] = $item['name'];
$item = self::getMatchProxy($item, $ProxyGroup);
if ($item !== null && !in_array($item['name'], $proxies)) {
$proxies[] = $item['name'];
}
}
if (isset($ProxyGroup['content']['right-proxies'])) {
$proxies = array_merge($proxies, $ProxyGroup['content']['right-proxies']);
}
$tmp = [
'name' => $ProxyGroup['name'],
'type' => $ProxyGroup['type'],
'proxies' => $proxies
];
if ($ProxyGroup['type'] != 'select') {
$tmp['url'] = $ProxyGroup['url'];
$tmp['interval'] = $ProxyGroup['interval'];
}
$return[] = $tmp;
}
}
return $return;
}
/**
* Clash 配置中的 Rule
*
* @param array $Rules Clash 规则加载地址
*
* @return string
*/
public static function getClashConfRule($Rules, $local)
{
// 加载本地规则文件
if ($local) {
$render = ConfRender::getTemplateRender();
return $render->fetch(trim($Rules['source']));
}
// 加载远程规则文件
$return = ('Rule:' . PHP_EOL);
if (isset($Rules['source']) && $Rules['source'] != '') {
$sourceURL = trim($Rules['source']);
// 远程规则仅支持 github 以及 gitlab
if (preg_match('/^https:\/\/((gist\.)?github\.com|raw\.githubusercontent\.com|gitlab\.com)/i', $sourceURL)) {
$sourceContent = @file_get_contents($sourceURL);
if (!$sourceContent) {
$return .= ('// 远程规则加载失败'
. PHP_EOL
. 'GEOIP,CN,DIRECT'
. PHP_EOL
. 'MATCH,DIRECT');
} else {
try {
$sourceRule = Yaml::parse($sourceContent);
} catch (ParseException $exception) {
$sourceRule['error'] = printf('无法解析 YAML 字符串: %s', $exception->getMessage());
}
if (isset($sourceRule['error']) || !isset($sourceRule['Rule'])) {
$return .= $sourceContent;
} else {
$return .= Yaml::dump($sourceRule['Rule'], 4, 2);
}
}
} else {
$return .= ('// 远程规则仅支持 github 以及 gitlab'
. PHP_EOL
. 'GEOIP,CN,DIRECT'
. PHP_EOL
. 'MATCH,DIRECT');
}
}
return $return;
}
/**
* Clash ProxyGroup 去除无用策略组
*
* @param array $ProxyGroups 策略组
* @param array $checks 要检查的策略组名
*
* @return array
*/
public static function fixClashProxyGroup($ProxyGroups, $checks)
{
if (count($checks) == 0) {
return $ProxyGroups;
}
$clean_names = [];
$newProxyGroups = [];
foreach ($ProxyGroups as $ProxyGroup) {
if (in_array($ProxyGroup['name'], $checks) && count($ProxyGroup['proxies']) == 0) {
$clean_names[] = $ProxyGroup['name'];
continue;
}
$newProxyGroups[] = $ProxyGroup;
}
if (count($clean_names) >= 1) {
$ProxyGroups = $newProxyGroups;
$newProxyGroups = [];
foreach ($ProxyGroups as $ProxyGroup) {
if (!in_array($ProxyGroup['name'], $checks)) {
$newProxies = [];
foreach ($ProxyGroup['proxies'] as $proxie) {
if (!in_array($proxie, $clean_names)) {
$newProxies[] = $proxie;
}
}
$ProxyGroup['proxies'] = $newProxies;
}
$newProxyGroups[] = $ProxyGroup;
}
}
return $newProxyGroups;
}
/**
* Clash ProxyGroup 转字符串
*
* @param array $ProxyGroups ProxyGroup
*
* @return string
*/
public static function getClashProxyGroup2String($ProxyGroups)
{
return Yaml::dump($ProxyGroups, 4, 2);
}
// 待续 Quantumult...
}

@ -3,12 +3,14 @@
namespace App\Controllers;
use App\Models\InviteCode;
use App\Services\Auth;
use App\Services\Config;
use App\Utils\AliPay;
use App\Utils\TelegramSessionManager;
use App\Utils\TelegramProcess;
use App\Utils\Spay_tool;
use App\Utils\Geetest;
use App\Utils\Tools;
/**
* HomeController
@ -41,16 +43,20 @@ class HomeController extends BaseController
$login_number = '';
}
return $this->view()
->assign('geetest_html', $GtSdk)
->assign('login_token', $login_token)
->assign('login_number', $login_number)
->assign('telegram_bot', Config::get('telegram_bot'))
->assign('enable_logincaptcha', Config::get('enable_login_captcha'))
->assign('enable_regcaptcha', Config::get('enable_reg_captcha'))
->assign('base_url', Config::get('baseUrl'))
->assign('recaptcha_sitekey', $recaptcha_sitekey)
->display('index.tpl');
if (Config::get('newIndex') != 'true' && Config::get('theme') == 'material') {
return $this->view()->display('indexold.tpl');
} else {
return $this->view()
->assign('geetest_html', $GtSdk)
->assign('login_token', $login_token)
->assign('login_number', $login_number)
->assign('telegram_bot', Config::get('telegram_bot'))
->assign('enable_logincaptcha', Config::get('enable_login_captcha'))
->assign('enable_regcaptcha', Config::get('enable_reg_captcha'))
->assign('base_url', Config::get('baseUrl'))
->assign('recaptcha_sitekey', $recaptcha_sitekey)
->display('index.tpl');
}
}
public function indexold()
@ -65,8 +71,7 @@ class HomeController extends BaseController
}
public function down()
{
}
{ }
public function tos()
{
@ -85,7 +90,7 @@ class HomeController extends BaseController
if ($token == Config::get('telegram_request_token')) {
TelegramProcess::process();
} else {
echo('不正确请求!');
echo ('不正确请求!');
}
}
@ -127,4 +132,128 @@ class HomeController extends BaseController
}
return $response->getBody()->write(json_encode(['res' => AliPay::setOrder($sn, $url)]));
}
public function getDocCenter($request, $response, $args)
{
$user = Auth::getUser();
if (!$user->isLogin && Config::get('enable_documents') != 'true') {
$newResponse = $response->withStatus(302)->withHeader('Location', '/');
return $newResponse;
}
$basePath = Config::get('remote_documents') == 'true' ? Config::get('documents_source') : '/docs/GeekQu';
return $this->view()
->assign('appName', Config::get('documents_name'))
->assign('basePath', $basePath)
->display('doc/index.tpl');
}
public function getSubLink($request, $response, $args)
{
$user = Auth::getUser();
if (!$user->isLogin) {
return $msg = '!> ₍₍ ◝(・ω・)◟ ⁾⁾ 您没有登录噢,[点击此处登录](/auth/login \':ignore target=_blank\') 之后再刷新就阔以了啦';
} else {
$subInfo = LinkController::getSubinfo($user, 0);
switch ($request->getParam('type')) {
case 'ssr':
$msg = [
'**订阅链接:**',
'```',
$subInfo['ssr'] . '&extend=1',
'```'
];
break;
case 'v2ray':
$msg = [
'**订阅链接:**',
'```',
$subInfo['v2ray'] . '&extend=1',
'```'
];
break;
case 'ssd':
$msg = [
'**订阅链接:**',
'```',
$subInfo['ssd'],
'```'
];
break;
case 'clash':
$msg = [
'**订阅链接:**[[点击下载配置]](' . $subInfo['clash'] . ')',
'```',
$subInfo['clash'],
'```'
];
break;
case 'surge':
$msg = [
'**Surge Version 2.x 托管配置链接:**[[iOS 点击此处一键添加]](surge:///install-config?url=' . urlencode($subInfo['surge2']) . ')',
'```',
$subInfo['surge2'],
'```',
'**Surge Version 3.x 托管配置链接:**[[iOS 点击此处一键添加]](surge3:///install-config?url=' . urlencode($subInfo['surge3']) . ')',
'```',
$subInfo['surge3'],
'```'
];
break;
case 'kitsunebi':
$msg = [
'**包含 ss、v2ray 的合并订阅链接:**',
'```',
$subInfo['kitsunebi'] . '&extend=1',
'```'
];
break;
case 'surfboard':
$msg = [
'**托管配置链接:**',
'```',
$subInfo['surfboard'],
'```'
];
break;
case 'quantumult_sub':
$msg = [
'**ssr 订阅链接:**[[iOS 点击此处一键添加]](quantumult://configuration?server=' . Tools::base64_url_encode($subInfo['ssr']) . ')',
'```',
$subInfo['ssr'],
'```',
'**V2ray 订阅链接:**[[iOS 点击此处一键添加]](quantumult://configuration?server=' . Tools::base64_url_encode($subInfo['quantumult_v2']) . ')',
'```',
$subInfo['quantumult_v2'],
'```'
];
break;
case 'quantumult_conf':
$msg = [
'**导入 ss、ssr、v2ray 以及分流规则的配置链接:**',
'```',
$subInfo['quantumult_sub'],
'```',
'**导入类似 Surge、Clash 使用自定义策略组的配置链接:**',
'```',
$subInfo['quantumult_conf'],
'```'
];
break;
case 'shadowrocket':
$msg = [
'**包含 ss、ssr、v2ray 的合并订阅链接:**[[iOS 点击此处一键添加]](sub://' . base64_encode($subInfo['shadowrocket']) . ')',
'```',
$subInfo['shadowrocket'],
'```'
];
break;
default:
$msg = [
'获取失败了呢...,请联系管理员。'
];
break;
}
}
return implode(PHP_EOL, $msg);
}
}

File diff suppressed because it is too large Load Diff

@ -9,7 +9,10 @@ use App\Models\UnblockIp;
use App\Models\Speedtest;
use App\Models\Node;
use App\Models\Auto;
use App\Models\User;
use App\Controllers\BaseController;
use App\Utils\Tools;
use App\Services\Config;
class FuncController extends BaseController
{
@ -58,18 +61,57 @@ class FuncController extends BaseController
if ($rules[0]['dist_node_id'] == -1) {
$server = null;
}
foreach ($rules as $rule) {
$dis = $this->get_dis_node_info($rule['dist_node_id']);
if ($dis != null) {
$rule['source_node_sort'] = $node->sort;
$rule['dist_node_sort'] = $dis->sort;
$rule['dist_node_server'] = $dis->server;
} else {
$rule['source_node_sort'] = $node->sort;
$rule['dist_node_sort'] = null;
$rule['dist_node_server'] = null;
if (Config::get('relay_port_migration') == 'true') {
foreach ($rules as $rule) {
$dis = $this->get_dis_node_info($rule['dist_node_id']);
if ($dis != null) {
$rule['source_node_sort'] = $node->sort;
$rule['dist_node_sort'] = $dis->sort;
if (in_array($dis->sort, [0, 10])) {
$dis_server = explode(';', $dis->server);
$rule['dist_node_server'] = $dis_server[0];
} else {
$rule['dist_node_server'] = $dis->server;
}
if (in_array($dis->sort, [0, 10]) && strpos($dis->server, ';') !== false && $dis->mu_only != -1) {
$muPort = Tools::get_MuOutPortArray($dis->server);
$user = User::where('port', '=', $rule['port'])->first();
if ($user != null) {
if ($user->is_multi_user != 0) {
if ($muPort['type'] == 0) {
if (in_array($rule['port'], array_keys($muPort['port']))) {
$rule['port'] = $muPort['port'][$rule['port']];
}
} else {
$rule['port'] = ($rule['port'] + $muPort['type']);
}
}
}
}
} else {
$rule['source_node_sort'] = $node->sort;
$rule['dist_node_sort'] = null;
$rule['dist_node_server'] = null;
}
}
} else {
foreach ($rules as $rule) {
$dis = $this->get_dis_node_info($rule['dist_node_id']);
if ($dis != null) {
$rule['source_node_sort'] = $node->sort;
$rule['dist_node_sort'] = $dis->sort;
$rule['dist_node_server'] = $dis->server;
} else {
$rule['source_node_sort'] = $node->sort;
$rule['dist_node_sort'] = null;
$rule['dist_node_server'] = null;
}
}
}
$res = [
'ret' => 1,
'data' => $rules,

@ -52,6 +52,12 @@ class NodeController extends BaseController
];
return $this->echoJson($response, $res);
}
if (in_array($node->sort, [0, 10])) {
$node_explode = explode(';', $node->server);
$node_server = $node_explode[0];
} else {
$node_server = $node->server;
}
$res = [
'ret' => 1,
'data' => [
@ -61,7 +67,7 @@ class NodeController extends BaseController
'traffic_rate' => $node->traffic_rate,
'mu_only' => $node->mu_only,
'sort' => $node->sort,
'server' => $node->server,
'server' => $node_server,
'type' => 'ss-panel-v3-mod_Uim'
],
];
@ -74,7 +80,8 @@ class NodeController extends BaseController
static function ($query) {
$query->where('sort', '=', 0)
->orWhere('sort', '=', 10)
->orWhere('sort', '=', 12);
->orWhere('sort', '=', 12)
->orWhere('sort', '=', 13);
}
)->get();
$res = [

@ -8,8 +8,11 @@ use App\Models\User;
use App\Models\NodeOnlineLog;
use App\Models\Ip;
use App\Models\DetectLog;
use App\Models\DetectBanLog;
use App\Controllers\BaseController;
use App\Services\Config;
use App\Utils\Tools;
use App\Utils\URL;
class UserController extends BaseController
{
@ -35,50 +38,123 @@ class UserController extends BaseController
$node->node_heartbeat = time();
$node->save();
if ($node->node_group != 0) {
$users_raw = User::where(
static function ($query) use ($node) {
// 节点流量耗尽则返回 null
if (($node->node_bandwidth_limit != 0) && $node->node_bandwidth_limit < $node->node_bandwidth) {
$users = null;
$res = [
'ret' => 1,
'data' => $users
];
return $this->echoJson($response, $res);
}
if (in_array($node->sort, [0, 10]) && $node->mu_only != -1) {
$mu_port_migration = Config::get('mu_port_migration');
} else {
$mu_port_migration = 'false';
}
/*
* 1. 请不要把管理员作为单端口承载用户
* 2. 请不要把真实用户作为单端口承载用户
*/
$users_raw = User::where(
static function ($query) use ($node, $mu_port_migration) {
if ($mu_port_migration == 'true') {
$query->where(
static function ($query1) use ($node) {
$query1->where('class', '>=', $node->node_class)
->where('node_group', '=', $node->node_group);
if ($node->node_group != 0) {
$query1->where('class', '>=', $node->node_class)
->where('node_group', '=', $node->node_group)
->where('is_multi_user', '=', 0)
->where('is_admin', 0);
} else {
$query1->where('class', '>=', $node->node_class)
->where('is_multi_user', '=', 0)
->where('is_admin', 0);
}
}
);
} else {
$query->where(
static function ($query1) use ($node) {
if ($node->node_group != 0) {
$query1->where('class', '>=', $node->node_class)
->where('node_group', '=', $node->node_group);
} else {
$query1->where('class', '>=', $node->node_class);
}
}
)->orwhere('is_admin', 1);
}
)
->where('enable', 1)->where('expire_in', '>', date('Y-m-d H:i:s'))->get();
} else {
$users_raw = User::where(
}
)->where('enable', 1)->where("detect_ban", 0)->where('expire_in', '>', date('Y-m-d H:i:s'))->get();
// 单端口承载用户
if ($mu_port_migration == 'true') {
$mu_users_raw = User::where(
static function ($query) use ($node) {
$query->where(
static function ($query1) use ($node) {
$query1->where('class', '>=', $node->node_class);
if ($node->node_group != 0) {
$query1->where('class', '>=', $node->node_class)
->where('node_group', '=', $node->node_group)
->where('is_multi_user', '>', 0);
} else {
$query1->where('class', '>=', $node->node_class)
->where('is_multi_user', '>', 0);
}
}
)->orwhere('is_admin', 1);
}
)->where('enable', 1)->where('expire_in', '>', date('Y-m-d H:i:s'))->get();
}
if (($node->node_bandwidth_limit != 0) && $node->node_bandwidth_limit < $node->node_bandwidth) {
$users = null;
$res = [
'ret' => 1,
'data' => $users
];
return $this->echoJson($response, $res);
)->where('enable', 1)->where("detect_ban", 0)->where('expire_in', '>', date('Y-m-d H:i:s'))->get();
$muPort = Tools::get_MuOutPortArray($node->server);
if ($muPort['type'] == 0) {
foreach ($mu_users_raw as $user_raw) {
if ($user_raw->is_multi_user != 0 && in_array($user_raw->port, array_keys($muPort['port']))) {
$user_raw->port = $muPort['port'][$user_raw->port];
}
$users_raw[] = $user_raw;
}
} else {
foreach ($mu_users_raw as $user_raw) {
if ($user_raw->is_multi_user != 0) {
$user_raw->port = ($user_raw->port + $muPort['type']);
}
$users_raw[] = $user_raw;
}
}
}
$users = array();
$key_list = array('email', 'method', 'obfs', 'obfs_param', 'protocol', 'protocol_param',
'forbidden_ip', 'forbidden_port', 'node_speedlimit', 'disconnect_ip',
'is_multi_user', 'id', 'port', 'passwd', 'u', 'd');
foreach ($users_raw as $user_raw) {
if ($user_raw->transfer_enable > $user_raw->u + $user_raw->d) {
$user_raw = Tools::keyFilter($user_raw, $key_list);
$user_raw->uuid = $user_raw->getUuid();
$users[] = $user_raw;
$users = array();
if (Config::get('keep_connect') == 'true') {
foreach ($users_raw as $user_raw) {
if ($user_raw->transfer_enable > $user_raw->u + $user_raw->d) {
$user_raw = Tools::keyFilter($user_raw, $key_list);
$user_raw->uuid = $user_raw->getUuid();
$users[] = $user_raw;
} else {
// 流量耗尽用户限速至 1Mbps
$user_raw = Tools::keyFilter($user_raw, $key_list);
$user_raw->uuid = $user_raw->getUuid();
$user_raw->node_speedlimit = 1;
$users[] = $user_raw;
}
}
} else {
foreach ($users_raw as $user_raw) {
if ($user_raw->transfer_enable > $user_raw->u + $user_raw->d) {
$user_raw = Tools::keyFilter($user_raw, $key_list);
$user_raw->uuid = $user_raw->getUuid();
$users[] = $user_raw;
}
}
}
@ -222,18 +298,49 @@ class UserController extends BaseController
return $this->echoJson($response, $res);
}
if (count($data) > 0) {
foreach ($data as $log) {
$list_id = $log['list_id'];
$user_id = $log['user_id'];
// log
$detect_log = new DetectLog();
$detect_log->user_id = $user_id;
$detect_log->list_id = $list_id;
$detect_log->node_id = $node_id;
$detect_log->datetime = time();
$detect_log->save();
if (Config::get('enable_auto_detect_ban') == 'true') {
$detect_Users = array();
if (count($data) > 0) {
foreach ($data as $log) {
$list_id = $log['list_id'];
$user_id = $log['user_id'];
// log
$detect_log = new DetectLog();
$detect_log->user_id = $user_id;
$detect_log->list_id = $list_id;
$detect_log->node_id = $node_id;
$detect_log->datetime = time();
$detect_log->save();
$User = User::find($user_id);
if ($User == null) {
continue;
}
if (!in_array($user_id, $detect_Users)) {
$detect_Users[] = $user_id;
}
$User->all_detect_number++;
$User->save();
}
}
if (count($detect_Users) > 0) {
self::DetectBan($detect_Users);
}
} else {
if (count($data) > 0) {
foreach ($data as $log) {
$list_id = $log['list_id'];
$user_id = $log['user_id'];
// log
$detect_log = new DetectLog();
$detect_log->user_id = $user_id;
$detect_log->list_id = $list_id;
$detect_log->node_id = $node_id;
$detect_log->datetime = time();
$detect_log->save();
}
}
}
@ -243,4 +350,74 @@ class UserController extends BaseController
];
return $this->echoJson($response, $res);
}
public function DetectBan($detect_Users)
{
foreach ($detect_Users as $user_id) {
$User = User::find($user_id);
if ($User == null) {
continue;
}
if ($User->detect_ban == 1 || ($User->is_admin && Config::get('auto_detect_ban_allow_admin') == 'true') || in_array($User->id, Config::get('auto_detect_ban_allow_users'))) {
continue;
}
if (Config::get('auto_detect_ban_type') == '1') {
$last_DetectBanLog = DetectBanLog::where('user_id', $user_id)->orderBy("id", "desc")->first();
$last_all_detect_number = (
$last_DetectBanLog == null
? 0
: (int) $last_DetectBanLog->all_detect_number
);
$detect_number = ($User->all_detect_number - $last_all_detect_number);
if ($detect_number >= Config::get('auto_detect_ban_number')) {
$last_detect_ban_time = $User->last_detect_ban_time;
$end_time = date('Y-m-d H:i:s');
$User->detect_ban = 1;
$User->last_detect_ban_time = $end_time;
$User->save();
$DetectBanLog = new DetectBanLog();
$DetectBanLog->user_name = $User->user_name;
$DetectBanLog->user_id = $User->id;
$DetectBanLog->email = $User->email;
$DetectBanLog->detect_number = $detect_number;
$DetectBanLog->ban_time = Config::get('auto_detect_ban_time');
$DetectBanLog->start_time = strtotime($last_detect_ban_time);
$DetectBanLog->end_time = strtotime($end_time);
$DetectBanLog->all_detect_number = $User->all_detect_number;
$DetectBanLog->save();
}
} else {
$number = $User->all_detect_number;
$tmp = 0;
foreach (Config::get('auto_detect_ban') as $key => $value) {
if ($number >= $key) {
if ($key >= $tmp) {
$tmp = $key;
}
}
}
if ($tmp != 0) {
if (Config::get('auto_detect_ban')[$tmp]['type'] == 'kill') {
$User->kill_user();
} else {
$last_detect_ban_time = $User->last_detect_ban_time;
$end_time = date('Y-m-d H:i:s');
$User->detect_ban = 1;
$User->last_detect_ban_time = $end_time;
$User->save();
$DetectBanLog = new DetectBanLog();
$DetectBanLog->user_name = $User->user_name;
$DetectBanLog->user_id = $User->id;
$DetectBanLog->email = $User->email;
$DetectBanLog->detect_number = $number;
$DetectBanLog->ban_time = Config::get('auto_detect_ban')[$tmp]['time'];
$DetectBanLog->start_time = strtotime('1989-06-04 00:05:00');
$DetectBanLog->end_time = strtotime($end_time);
$DetectBanLog->all_detect_number = $number;
$DetectBanLog->save();
}
}
}
}
}
}

@ -166,7 +166,7 @@ class RelayController extends UserController
foreach ($dist_nodes as $node) {
if ($node->sort == 11 || $node->sort == 12) {
$node_explode = Tools::ssv2Array($node->server);
$node_explode = Tools::v2Array($node->server);
$ports[] = $node_explode['port'];
$node->name = $node->name . ' 如果是V2ray后端 请设置成 ' . $node_explode['port'];
} else {
@ -249,7 +249,7 @@ class RelayController extends UserController
)->where('type', 1)->where('sort', 9)->where('node_class', '<=', $user->class)->first();
$v2ray_port_raw = '';
if ($dist_node->sort == 12 || $dist_node->sort == 11) {
$node_explode = Tools::ssv2Array($dist_node->server);
$node_explode = Tools::v2Array($dist_node->server);
$v2ray_port_raw = $node_explode['port'];
}
if (($port_raw == null && $port != $user->port && $v2ray_port_raw == '') || ($v2ray_port_raw != '' && ($port != $user->port && $port != $v2ray_port_raw))) {
@ -355,7 +355,7 @@ class RelayController extends UserController
}
foreach ($dist_nodes as $node) {
if ($node->sort == 11 || $node->sort == 12) {
$node_explode = Tools::ssv2Array($node->server);
$node_explode = Tools::v2Array($node->server);
$ports[] = $node_explode['port'];
$node->name = $node->name . ' 如果是V2ray后端 请设置成: ' . $node_explode['port'];
} else {
@ -435,7 +435,7 @@ class RelayController extends UserController
)->where('type', 1)->where('sort', 9)->where('node_class', '<=', $user->class)->first();
$v2ray_port_raw = '';
if ($dist_node->sort == 12 || $dist_node->sort == 11) {
$node_explode = Tools::ssv2Array($dist_node->server);
$node_explode = Tools::v2Array($dist_node->server);
$v2ray_port_raw = $node_explode['port'];
}
if (($port_raw == null && $port != $user->port && $v2ray_port_raw == '') || ($v2ray_port_raw != '' && ($port != $user->port && $port != $v2ray_port_raw))) {

@ -37,6 +37,7 @@ use App\Models\BlockIp;
use App\Models\UnblockIp;
use App\Models\Payback;
use App\Models\Relay;
use App\Models\UserSubscribeLog;
use App\Utils\QQWry;
use App\Utils\GA;
use App\Utils\Geetest;
@ -72,8 +73,8 @@ class UserController extends BaseController
$Ann = Ann::orderBy('date', 'desc')->first();
return $this->view()
->assign('subInfo', LinkController::getSubinfo($this->user, 0))
->assign('ssr_sub_token', $ssr_sub_token)
->assign('display_ios_class', Config::get('display_ios_class'))
->assign('display_ios_topup', Config::get('display_ios_topup'))
@ -501,7 +502,7 @@ class UserController extends BaseController
$sort = $array_node['sort'];
$array_node['online_user'] = 0;
foreach ($onlineLogs as $log) {
if ($log['node_id'] != $node->id) {
continue;
@ -513,12 +514,12 @@ class UserController extends BaseController
}
break;
}
// check node status
// check node status
// 0: new node; -1: offline; 1: online
$node_heartbeat = $node->node_heartbeat + 300;
$array_node['online'] = -1;
if (!in_array($sort, array(0, 7, 8, 10, 11, 12, 13)) || $node_heartbeat == 300 ) {
if (!in_array($sort, array(0, 7, 8, 10, 11, 12, 13)) || $node_heartbeat == 300) {
$array_node['online'] = 0;
} elseif ($node_heartbeat > time()) {
$array_node['online'] = 1;
@ -532,8 +533,8 @@ class UserController extends BaseController
}
}
$array_node['traffic_used'] = (int)Tools::flowToGB($node->node_bandwidth);
$array_node['traffic_limit'] = (int)Tools::flowToGB($node->node_bandwidth_limit);
$array_node['traffic_used'] = (int) Tools::flowToGB($node->node_bandwidth);
$array_node['traffic_limit'] = (int) Tools::flowToGB($node->node_bandwidth_limit);
if ($node->node_speedlimit == 0.0) {
$array_node['bandwidth'] = 0;
} elseif ($node->node_speedlimit >= 1024.00) {
@ -547,7 +548,14 @@ class UserController extends BaseController
$array_nodes[] = $array_node;
}
return $this->view()->assign('nodes', $array_nodes)->assign('nodes_muport', $nodes_muport)->assign('relay_rules', $relay_rules)->assign('tools', new Tools())->assign('user', $user)->registerClass('URL', URL::class)->display('user/node.tpl');
return $this->view()
->assign('nodes', $array_nodes)
->assign('nodes_muport', $nodes_muport)
->assign('relay_rules', $relay_rules)
->assign('tools', new Tools())
->assign('user', $user)
->registerClass('URL', URL::class)
->display('user/node.tpl');
}
@ -564,7 +572,7 @@ class UserController extends BaseController
$node_prefix = array();
$node_flag_file = array();
$node_method = array();
$a = 0;//命名的什么JB变量
$a = 0; //命名的什么JB变量
$node_order = array();
$node_alive = array();
$node_prealive = array();
@ -620,9 +628,9 @@ class UserController extends BaseController
}
if ($node->node_bandwidth_limit == 0) {
$node_bandwidth[$name_cheif] = (int)($node->node_bandwidth / 1024 / 1024 / 1024) . ' GB 已用';
$node_bandwidth[$name_cheif] = (int) ($node->node_bandwidth / 1024 / 1024 / 1024) . ' GB 已用';
} else {
$node_bandwidth[$name_cheif] = (int)($node->node_bandwidth / 1024 / 1024 / 1024) . ' GB / ' . (int)($node->node_bandwidth_limit / 1024 / 1024 / 1024) . ' GB - ' . $node->bandwidthlimit_resetday . ' 日重置';
$node_bandwidth[$name_cheif] = (int) ($node->node_bandwidth / 1024 / 1024 / 1024) . ' GB / ' . (int) ($node->node_bandwidth_limit / 1024 / 1024 / 1024) . ' GB - ' . $node->bandwidthlimit_resetday . ' 日重置';
}
if ($node_tempalive != '暂无数据') {
@ -641,7 +649,7 @@ class UserController extends BaseController
$nodeLoad = $node->getNodeLoad();
if (isset($nodeLoad[0]['load'])) {
$node_latestload[$name_cheif] = ((float)(explode(' ', $nodeLoad[0]['load']))[0]) * 100;
$node_latestload[$name_cheif] = ((float) (explode(' ', $nodeLoad[0]['load']))[0]) * 100;
} else {
$node_latestload[$name_cheif] = null;
}
@ -656,8 +664,8 @@ class UserController extends BaseController
}
}
}
$node_prefix = (object)$node_prefix;
$node_order = (object)$node_order;
$node_prefix = (object) $node_prefix;
$node_order = (object) $node_order;
$tools = new Tools();
return $this->view()->assign('relay_rules', $relay_rules)->assign('node_class', $node_class)->assign('node_isv6', $node_isv6)->assign('tools', $tools)->assign('node_method', $node_method)->assign('node_muport', $node_muport)->assign('node_bandwidth', $node_bandwidth)->assign('node_heartbeat', $node_heartbeat)->assign('node_prefix', $node_prefix)->assign('node_flag_file', $node_flag_file)->assign('node_prealive', $node_prealive)->assign('node_order', $node_order)->assign('user', $user)->assign('node_alive', $node_alive)->assign('node_latestload', $node_latestload)->registerClass('URL', URL::class)->display('user/node.tpl');
}
@ -744,11 +752,11 @@ class UserController extends BaseController
foreach ($totallogin as $single) {
//if(isset($useripcount[$single->userid]))
{
if (!isset($userloginip[$single->ip])) {
//$useripcount[$single->userid]=$useripcount[$single->userid]+1;
$location = $iplocation->getlocation($single->ip);
$userloginip[$single->ip] = iconv('gbk', 'utf-8//IGNORE', $location['country'] . $location['area']);
}
if (!isset($userloginip[$single->ip])) {
//$useripcount[$single->userid]=$useripcount[$single->userid]+1;
$location = $iplocation->getlocation($single->ip);
$userloginip[$single->ip] = iconv('gbk', 'utf-8//IGNORE', $location['country'] . $location['area']);
}
}
}
@ -757,16 +765,16 @@ class UserController extends BaseController
{
$single->ip = Tools::getRealIp($single->ip);
$is_node = Node::where('node_ip', $single->ip)->first();
if ($is_node) {
continue;
}
if ($is_node) {
continue;
}
if (!isset($userip[$single->ip])) {
//$useripcount[$single->userid]=$useripcount[$single->userid]+1;
$location = $iplocation->getlocation($single->ip);
$userip[$single->ip] = iconv('gbk', 'utf-8//IGNORE', $location['country'] . $location['area']);
}
if (!isset($userip[$single->ip])) {
//$useripcount[$single->userid]=$useripcount[$single->userid]+1;
$location = $iplocation->getlocation($single->ip);
$userip[$single->ip] = iconv('gbk', 'utf-8//IGNORE', $location['country'] . $location['area']);
}
}
}
@ -806,8 +814,17 @@ class UserController extends BaseController
$config_service = new Config();
return $this->view()->assign('user', $this->user)->assign('themes', $themes)->assign('isBlock', $isBlock)->assign('Block', $Block)->assign('bind_token', $bind_token)->assign('telegram_bot', Config::get('telegram_bot'))->assign('config_service', $config_service)
->registerClass('URL', URL::class)->display('user/edit.tpl');
return $this->view()
->assign('user', $this->user)
->assign('schemes', Config::get('user_agreement_scheme'))
->assign('themes', $themes)
->assign('isBlock', $isBlock)
->assign('Block', $Block)
->assign('bind_token', $bind_token)
->assign('telegram_bot', Config::get('telegram_bot'))
->assign('config_service', $config_service)
->registerClass('URL', URL::class)
->display('user/edit.tpl');
}
@ -1228,8 +1245,7 @@ class UserController extends BaseController
try {
Mail::send($to, $subject, 'news/warn.tpl', [
'user' => $user, 'text' => $text
], [
]);
], []);
} catch (Exception $e) {
echo $e->getMessage();
}
@ -1245,11 +1261,11 @@ class UserController extends BaseController
)
);
$opts = array('http' =>
array(
'method' => 'POST',
'header' => 'Content-type: application/x-www-form-urlencoded',
'content' => $postdata
));
array(
'method' => 'POST',
'header' => 'Content-type: application/x-www-form-urlencoded',
'content' => $postdata
));
$context = stream_context_create($opts);
file_get_contents('https://sc.ftqq.com/' . $ScFtqq_SCKEY . '.send', false, $context);
}
@ -1295,8 +1311,7 @@ class UserController extends BaseController
try {
Mail::send($to, $subject, 'news/warn.tpl', [
'user' => $user, 'text' => $text
], [
]);
], []);
} catch (Exception $e) {
echo $e->getMessage();
}
@ -1311,11 +1326,11 @@ class UserController extends BaseController
)
);
$opts = array('http' =>
array(
'method' => 'POST',
'header' => 'Content-type: application/x-www-form-urlencoded',
'content' => $postdata
));
array(
'method' => 'POST',
'header' => 'Content-type: application/x-www-form-urlencoded',
'content' => $postdata
));
$context = stream_context_create($opts);
file_get_contents('https://sc.ftqq.com/' . $ScFtqq_SCKEY . '.send', false, $context);
$useScFtqq = Config::get('ScFtqq_SCKEY');
@ -1330,8 +1345,7 @@ class UserController extends BaseController
try {
Mail::send($to, $subject, 'news/warn.tpl', [
'user' => $user, 'text' => $text
], [
]);
], []);
} catch (Exception $e) {
echo $e->getMessage();
}
@ -1346,11 +1360,11 @@ class UserController extends BaseController
)
);
$opts = array('http' =>
array(
'method' => 'POST',
'header' => 'Content-type: application/x-www-form-urlencoded',
'content' => $postdata
));
array(
'method' => 'POST',
'header' => 'Content-type: application/x-www-form-urlencoded',
'content' => $postdata
));
$context = stream_context_create($opts);
file_get_contents('https://sc.ftqq.com/' . $ScFtqq_SCKEY . '.send', false, $context);
}
@ -1438,7 +1452,6 @@ class UserController extends BaseController
return $this->echoJson($response, $res);
}
public function updateSSR($request, $response, $args)
{
$protocol = $request->getParam('protocol');
@ -1833,4 +1846,123 @@ class UserController extends BaseController
], $expire_in);
return $response->withStatus(302)->withHeader('Location', $local);
}
public function switchType($request, $response, $args)
{
$user = $this->user;
$type = $request->getParam('id');
$type = trim($type);
$scheme = [];
$items = Config::get('user_agreement_scheme');
foreach ($items as $item) {
if ($type == $item['id']) {
$scheme = $item;
}
}
if (!isset($scheme['id'])) {
$res['ret'] = 0;
$res['msg'] = '非法输入';
return $response->getBody()->write(json_encode($res));
}
$user->method = $scheme['method'];
$user->protocol = $scheme['protocol'];
$user->obfs = $scheme['obfs'];
$user->save();
$res['ret'] = 1;
$res['msg'] = '切换' . $scheme['name'] . '成功';
return $this->echoJson($response, $res);
}
public function getUserAllURL($request, $response, $args)
{
$user = $this->user;
$type = $request->getQueryParams()["type"];
$return = '';
switch ($type) {
case 'ss':
$return .= URL::getAllUrl($user, 0, 1) . PHP_EOL;
break;
case 'ssr':
$return .= URL::getAllUrl($user, 0, 0) . PHP_EOL;
break;
case 'ssd':
$return .= URL::getAllSSDUrl($user) . PHP_EOL;
break;
case 'v2ray':
$return .= URL::getAllVMessUrl($user) . PHP_EOL;
break;
default:
$return .= '悟空别闹!';
break;
}
$newResponse = $response->withHeader('Content-type', ' application/octet-stream; charset=utf-8')->withHeader('Cache-Control', 'no-store, no-cache, must-revalidate')->withHeader('Content-Disposition', ' attachment; filename=node.txt');
$newResponse->getBody()->write($return);
return $newResponse;
}
public function subscribe_log($request, $response, $args)
{
$pageNum = $request->getQueryParams()['page'] ?? 1;
$logs = UserSubscribeLog::orderBy('id', 'desc')->where('user_id', $this->user->id)->paginate(15, ['*'], 'page', $pageNum);
$logs->setPath('/user/subscribe_log');
$iplocation = new QQWry();
return $this->view()->assign('logs', $logs)->assign('iplocation', $iplocation)->display('user/subscribe_log.tpl');
}
public function getPcClient($request, $response, $args)
{
$zipArc = new \ZipArchive();
$user_token = LinkController::GenerateSSRSubCode($this->user->id, 0);
$type = trim($request->getQueryParams()['type']);
// 临时文件存放路径
$temp_file_path = '../storage/';
// 客户端文件存放路径
$client_path = '../resources/clients/';
switch ($type) {
case 'ss-win':
$temp_file_path .= $type . '_' . $user_token . '.zip';
$user_config_file_name = 'gui-config.json';
$content = LinkController::getSSPcConf($this->user);
$client_path .= $type . '/';
break;
case 'ssd-win':
$temp_file_path .= $type . '_' . $user_token . '.zip';
$user_config_file_name = 'gui-config.json';
$content = LinkController::getSSDPcConf($this->user);
$client_path .= $type . '/';
break;
case 'ssr-win':
$temp_file_path .= $type . '_' . $user_token . '.zip';
$user_config_file_name = 'gui-config.json';
$content = LinkController::getSSRPcConf($this->user);
$client_path .= $type . '/';
break;
default:
return 'gg';
}
// 文件存在则先删除
if (is_file($temp_file_path)) {
unlink($temp_file_path);
}
// 超链接文件内容
$site_url_content = '[InternetShortcut]' . PHP_EOL . 'URL=' . Config::get('baseUrl');
// 创建 zip 并添加内容
$zipArc->open($temp_file_path, \ZipArchive::CREATE);
$zipArc->addFromString($user_config_file_name, $content);
$zipArc->addFromString('点击访问_' . Config::get('appName') . '.url', $site_url_content);
Tools::folderToZip($client_path, $zipArc, strlen($client_path));
$zipArc->close();
$newResponse = $response->withHeader('Content-type', ' application/octet-stream')->withHeader('Content-Disposition', ' attachment; filename=' . $type . '.zip');
$newResponse->getBody()->write(file_get_contents($temp_file_path));
unlink($temp_file_path);
return $newResponse;
}
}

@ -0,0 +1,9 @@
<?php
namespace App\Models;
class DetectBanLog extends Model
{
protected $connection = "default";
protected $table = "detect_ban_log";
}

@ -7,7 +7,7 @@ namespace App\Models;
*/
use App\Utils\Tools;
use App\Utils\DNSoverHTTPS;
class Node extends Model
{
protected $connection = 'default';
@ -153,6 +153,9 @@ class Node extends Model
public function changeNodeIp($server_name)
{
$ip = gethostbyname($server_name);
if ($ip=="127.0.0.1"){
$ip = DNSoverHTTPS::gethostbyName($server_name);
}
$node_id = $this->attributes['id'];
if ($ip == '') {

@ -13,6 +13,8 @@ use App\Utils\GA;
use App\Utils\QQWry;
use App\Utils\Radius;
use Ramsey\Uuid\Uuid;
use App\Models\DetectLog;
use App\Models\DetectBanLog;
class User extends Model
{
@ -37,8 +39,8 @@ class User extends Model
public function getGravatarAttribute()
{
// $hash = md5(strtolower(trim($this->attributes['email'])));
return '/images/Avatar.jpg';//.$hash;
$hash = md5(strtolower(trim($this->attributes['email'])));
return 'https://gravatar.loli.net/avatar/' . $hash;
}
public function isAdmin()
@ -56,7 +58,11 @@ class User extends Model
public function getMuMd5()
{
$str = str_replace(array('%id', '%suffix'), array($this->attributes['id'], Config::get('mu_suffix')), Config::get('mu_regex'));
$str = str_replace(
array('%id', '%suffix'),
array($this->attributes['id'], Config::get('mu_suffix')),
Config::get('mu_regex')
);
preg_match_all("|%-?[1-9]\d*m|U", $str, $matches, PREG_PATTERN_ORDER);
foreach ($matches[0] as $key) {
$key_match = str_replace(array('%', 'm'), '', $key);
@ -128,7 +134,10 @@ class User extends Model
public function getUuid()
{
return Uuid::uuid3(Uuid::NAMESPACE_DNS, $this->attributes['id'] . '|' . $this->attributes['passwd'])->toString();
return Uuid::uuid3(
Uuid::NAMESPACE_DNS,
$this->attributes['id'] . '|' . $this->attributes['passwd']
)->toString();
}
public function trafficUsagePercent()
@ -199,7 +208,10 @@ class User extends Model
public function getGAurl()
{
$ga = new GA();
$url = $ga->getUrl(urlencode(Config::get('appName') . '-' . $this->attributes['user_name'] . '-两步验证码'), $this->attributes['ga_token']);
$url = $ga->getUrl(
urlencode(Config::get('appName') . '-' . $this->attributes['user_name'] . '-两步验证码'),
$this->attributes['ga_token']
);
return $url;
}
@ -320,22 +332,39 @@ class User extends Model
$location = $iplocation->getlocation($reg_location);
$reg_location .= "\n" . iconv('gbk', 'utf-8//IGNORE', $location['country'] . $location['area']);
$return_array = array('DT_RowId' => 'row_1_' . $id, $id, $id,
$this->attributes['user_name'], $this->attributes['remark'],
$this->attributes['email'], $this->attributes['money'],
$im_type, $im_value,
$this->attributes['node_group'], $account_expire_in,
$this->attributes['class'], $class_expire_in,
$this->attributes['passwd'], $this->attributes['port'],
$return_array = array(
'DT_RowId' => 'row_1_' . $id,
$id,
$id,
$this->attributes['user_name'],
$this->attributes['remark'],
$this->attributes['email'],
$this->attributes['money'],
$im_type,
$im_value,
$this->attributes['node_group'],
$account_expire_in,
$this->attributes['class'],
$class_expire_in,
$this->attributes['passwd'],
$this->attributes['port'],
$this->attributes['method'],
$this->attributes['protocol'], $this->attributes['obfs'],
$this->online_ip_count(), $this->lastSsTime(),
$used_traffic, $enable_traffic,
$this->lastCheckInTime(), $today_traffic,
$is_enable, $this->attributes['reg_date'],
$this->attributes['protocol'],
$this->attributes['obfs'],
$this->online_ip_count(),
$this->lastSsTime(),
$used_traffic,
$enable_traffic,
$this->lastCheckInTime(),
$today_traffic,
$is_enable,
$this->attributes['reg_date'],
$reg_location,
$this->attributes['auto_reset_day'], $this->attributes['auto_reset_bandwidth'],
$ref_user_id, $ref_user_name);
$this->attributes['auto_reset_day'],
$this->attributes['auto_reset_bandwidth'],
$ref_user_id,
$ref_user_name
);
return $return_array;
}
@ -353,4 +382,75 @@ class User extends Model
}
return round($top_up, 2);
}
// 最后一次被封禁的时间
public function last_detect_ban_time()
{
return ($this->attributes['last_detect_ban_time'] == '1989-06-04 00:05:00'
? '未被封禁过'
: $this->attributes['last_detect_ban_time']
);
}
// 当前解封时间
public function relieve_time()
{
if ($this->attributes['detect_ban'] == 1) {
$logs = DetectBanLog::where('user_id', $this->attributes['id'])->orderBy("id", "desc")->first();
$time = ($logs->end_time + $logs->ban_time * 60);
return date('Y-m-d H:i:s', $time);
} else {
return '当前未被封禁';
}
}
// 累计被封禁的次数
public function detect_ban_number()
{
$logs = DetectBanLog::where('user_id', $this->attributes['id'])->get();
return count($logs);
}
// 最后一次封禁的违规次数
public function user_detect_ban_number()
{
$logs = DetectBanLog::where('user_id', $this->attributes['id'])->orderBy("id", "desc")->first();
return $logs->detect_number;
}
public function yesterdayIncome()
{
return Code::where('usedatetime', 'like', date('Y-m-d%', strtotime('-1 days')))->sum(number);
}
public function todayIncome()
{
return Code::where('usedatetime', 'like', date('Y-m-d%'))->sum(number);
}
public function thisMonthIncome()
{
return Code::where('usedatetime', 'like', date('Y-m%'))->sum(number);
}
public function lastMonthIncome()
{
return Code::where('usedatetime', 'like', date('Y-m%', strtotime('-1 months')))->sum(number);
}
public function totalIncome()
{
return Code::where('usedatetime', 'like', date('%'))->sum(number);
}
public function paidUserCount()
{
return self::where('class', '!=', '0')->count();
}
public function disableReason()
{
$reason_id = DetectLog::where('user_id', '=', $this->attributes['id'])->orderBy('id', 'DESC')->first();
$reason = DetectRule::where('id', '=', $reason_id->list_id)->get();
return $reason[0]->text;
}
}

@ -0,0 +1,9 @@
<?php
namespace App\Models;
class UserSubscribeLog extends Model
{
protected $connection = 'default';
protected $table = 'user_subscribe_log';
}

@ -0,0 +1,554 @@
<?php
namespace App\Services;
class AppsProfiles
{
/**
* Surge 策略组配置
*
* @return array
*/
public static function Surge()
{
$Apps_Profiles = [
'lhie1' => [
'Checks' => ['🇭🇰 香港', '🇯🇵 日本', '🇸🇬 坡坡', '🇨🇳 台湾', '🇺🇸 美国', '🇰🇷 韩国', '🇨🇳 中继'],
'ProxyGroup' => [
[
'name' => '🍃 Proxy',
'type' => 'select',
'content' => [
'left-proxies' => ['🇭🇰 香港', '🇯🇵 日本', '🇸🇬 坡坡', '🇨🇳 台湾', '🇺🇸 美国', '🇰🇷 韩国', '🇨🇳 中继', '🚀 Direct']
]
],
[
'name' => '🍂 Domestic',
'type' => 'select',
'content' => [
'left-proxies' => ['🚀 Direct', '🍃 Proxy', '🇨🇳 中继']
]
],
[
'name' => '🍎 Only',
'type' => 'select',
'content' => [
'left-proxies' => ['🚀 Direct', '🇭🇰 香港', '🇯🇵 日本', '🇸🇬 坡坡', '🇨🇳 台湾', '🇺🇸 美国', '🇰🇷 韩国', '🇨🇳 中继']
]
],
[
'name' => '☁️ Others',
'type' => 'select',
'content' => [
'left-proxies' => ['🍃 Proxy', '🍂 Domestic']
]
],
[
'name' => '🇭🇰 香港',
'type' => 'select',
'content' => [
'regex' => '(香港|HK)'
],
'url' => 'http://www.qualcomm.cn/generate_204',
'interval' => 3600
],
[
'name' => '🇯🇵 日本',
'type' => 'select',
'content' => [
'regex' => '(日本|JP)'
],
'url' => 'http://www.qualcomm.cn/generate_204',
'interval' => 3600
],
[
'name' => '🇸🇬 坡坡',
'type' => 'select',
'content' => [
'regex' => '(新加坡|SG)'
],
'url' => 'http://www.qualcomm.cn/generate_204',
'interval' => 3600
],
[
'name' => '🇨🇳 台湾',
'type' => 'select',
'content' => [
'regex' => '(台湾|TW)'
],
'url' => 'http://www.qualcomm.cn/generate_204',
'interval' => 3600
],
[
'name' => '🇺🇸 美国',
'type' => 'select',
'content' => [
'regex' => '(美国|US)'
],
'url' => 'http://www.qualcomm.cn/generate_204',
'interval' => 3600
],
[
'name' => '🇰🇷 韩国',
'type' => 'select',
'content' => [
'regex' => '(韩国|KR)'
],
'url' => 'http://www.qualcomm.cn/generate_204',
'interval' => 3600
],
[
'name' => '🇨🇳 中继',
'type' => 'select',
'content' => [
'regex' => '(中继|中转|中国|回国|China)'
],
'url' => 'http://www.qualcomm.cn/generate_204',
'interval' => 3600
]
]
],
'123456' => [
'Checks' => [],
'ProxyGroup' => [
[
'name' => '🍃 Proxy',
'type' => 'select',
'content' => [
'regex' => '(.*)'
]
],
[
'name' => '🍂 Domestic',
'type' => 'select',
'content' => [
'left-proxies' => ['🚀 Direct', '🍃 Proxy']
]
],
[
'name' => '🍎 Only',
'type' => 'select',
'content' => [
'left-proxies' => ['🚀 Direct', '🍃 Proxy']
]
],
[
'name' => '☁️ Others',
'type' => 'select',
'content' => [
'left-proxies' => ['🍃 Proxy', '🍂 Domestic']
]
]
]
]
];
return $Apps_Profiles;
}
/**
* Surfboard 策略组配置
*
* @return array
*/
public static function Surfboard()
{
$Apps_Profiles = [
'lhie1' => [
'Checks' => ['🇭🇰 香港', '🇯🇵 日本', '🇸🇬 坡坡', '🇨🇳 台湾', '🇺🇸 美国', '🇰🇷 韩国', '🇨🇳 中继'],
'ProxyGroup' => [
[
'name' => '🍃 Proxy',
'type' => 'select',
'content' => [
'left-proxies' => ['🇭🇰 香港', '🇯🇵 日本', '🇸🇬 坡坡', '🇨🇳 台湾', '🇺🇸 美国', '🇰🇷 韩国', '🇨🇳 中继', '🚀 Direct']
]
],
[
'name' => '🍂 Domestic',
'type' => 'select',
'content' => [
'left-proxies' => ['🚀 Direct', '🍃 Proxy', '🇨🇳 中继']
]
],
[
'name' => '☁️ Others',
'type' => 'select',
'content' => [
'left-proxies' => ['🍃 Proxy', '🍂 Domestic']
]
],
[
'name' => '🇭🇰 香港',
'type' => 'select',
'content' => [
'regex' => '(香港|HK)'
],
'url' => 'http://www.qualcomm.cn/generate_204',
'interval' => 3600
],
[
'name' => '🇯🇵 日本',
'type' => 'select',
'content' => [
'regex' => '(日本|JP)'
],
'url' => 'http://www.qualcomm.cn/generate_204',
'interval' => 3600
],
[
'name' => '🇸🇬 坡坡',
'type' => 'select',
'content' => [
'regex' => '(新加坡|SG)'
],
'url' => 'http://www.qualcomm.cn/generate_204',
'interval' => 3600
],
[
'name' => '🇨🇳 台湾',
'type' => 'select',
'content' => [
'regex' => '(台湾|TW)'
],
'url' => 'http://www.qualcomm.cn/generate_204',
'interval' => 3600
],
[
'name' => '🇺🇸 美国',
'type' => 'select',
'content' => [
'regex' => '(美国|US)'
],
'url' => 'http://www.qualcomm.cn/generate_204',
'interval' => 3600
],
[
'name' => '🇰🇷 韩国',
'type' => 'select',
'content' => [
'regex' => '(韩国|KR)'
],
'url' => 'http://www.qualcomm.cn/generate_204',
'interval' => 3600
],
[
'name' => '🇨🇳 中继',
'type' => 'select',
'content' => [
'regex' => '(中继|中转|中国|回国|China)'
],
'url' => 'http://www.qualcomm.cn/generate_204',
'interval' => 3600
]
]
],
'123456' => [
'Checks' => [],
'ProxyGroup' => [
[
'name' => '🍃 Proxy',
'type' => 'select',
'content' => [
'regex' => '(.*)'
]
],
[
'name' => '🍂 Domestic',
'type' => 'select',
'content' => [
'left-proxies' => ['🚀 Direct', '🍃 Proxy']
]
],
[
'name' => '☁️ Others',
'type' => 'select',
'content' => [
'left-proxies' => ['🍃 Proxy', '🍂 Domestic']
]
]
]
]
];
return $Apps_Profiles;
}
/**
* Clash 策略组配置
*
* @return array
*/
public static function Clash()
{
$Apps_Profiles = [
'lhie1' => [
'Checks' => ['香港', '日本', '坡坡', '台湾', '美国', '韩国', '中继'],
'ProxyGroup' => [
[
'name' => '香港',
'type' => 'url-test',
'content' => [
'regex' => '(香港|HK)'
],
'url' => 'http://www.qualcomm.cn/generate_204',
'interval' => 3600
],
[
'name' => '日本',
'type' => 'url-test',
'content' => [
'regex' => '(日本|JP)'
],
'url' => 'http://www.qualcomm.cn/generate_204',
'interval' => 3600
],
[
'name' => '坡坡',
'type' => 'url-test',
'content' => [
'regex' => '(新加坡|SG)'
],
'url' => 'http://www.qualcomm.cn/generate_204',
'interval' => 3600
],
[
'name' => '美国',
'type' => 'url-test',
'content' => [
'regex' => '(美国|US)'
],
'url' => 'http://www.qualcomm.cn/generate_204',
'interval' => 3600
],
[
'name' => '台湾',
'type' => 'url-test',
'content' => [
'regex' => '(台湾|TW)'
],
'url' => 'http://www.qualcomm.cn/generate_204',
'interval' => 3600
],
[
'name' => '韩国',
'type' => 'url-test',
'content' => [
'regex' => '(韩国|KR)'
],
'url' => 'http://www.qualcomm.cn/generate_204',
'interval' => 3600
],
[
'name' => '中继',
'type' => 'url-test',
'content' => [
'regex' => '(中继|中转|中国|回国|China)'
],
'url' => 'http://www.qualcomm.cn/generate_204',
'interval' => 3600
],
[
'name' => 'Proxy',
'type' => 'select',
'content' => [
'left-proxies' => ['香港', '日本', '坡坡', '台湾', '美国', '韩国', '中继']
]
],
[
'name' => 'Domestic',
'type' => 'select',
'content' => [
'left-proxies' => ['DIRECT', 'Proxy', '中继']
]
],
[
'name' => 'AsianTV',
'type' => 'select',
'content' => [
'left-proxies' => ['Domestic', 'Proxy', '中继']
]
],
[
'name' => 'GlobalTV',
'type' => 'select',
'content' => [
'left-proxies' => ['Proxy', '香港', '日本', '坡坡', '台湾', '美国', '韩国', '中继']
]
],
[
'name' => 'Others',
'type' => 'select',
'content' => [
'left-proxies' => ['Proxy', 'Domestic']
]
]
]
],
'ConnersHua_Pro' => [
'Checks' => ['香港', '日本', '坡坡', '台湾', '美国', '韩国', '中继'],
'ProxyGroup' => [
[
'name' => '香港',
'type' => 'url-test',
'content' => [
'regex' => '(香港|HK)'
],
'url' => 'http://www.qualcomm.cn/generate_204',
'interval' => 3600
],
[
'name' => '日本',
'type' => 'url-test',
'content' => [
'regex' => '(日本|JP)'
],
'url' => 'http://www.qualcomm.cn/generate_204',
'interval' => 3600
],
[
'name' => '坡坡',
'type' => 'url-test',
'content' => [
'regex' => '(新加坡|SG)'
],
'url' => 'http://www.qualcomm.cn/generate_204',
'interval' => 3600
],
[
'name' => '美国',
'type' => 'url-test',
'content' => [
'regex' => '(美国|US)'
],
'url' => 'http://www.qualcomm.cn/generate_204',
'interval' => 3600
],
[
'name' => '台湾',
'type' => 'url-test',
'content' => [
'regex' => '(台湾|TW)'
],
'url' => 'http://www.qualcomm.cn/generate_204',
'interval' => 3600
],
[
'name' => '韩国',
'type' => 'url-test',
'content' => [
'regex' => '(韩国|KR)'
],
'url' => 'http://www.qualcomm.cn/generate_204',
'interval' => 3600
],
[
'name' => '中继',
'type' => 'url-test',
'content' => [
'regex' => '(中继|中转|中国|回国|China|CN)'
],
'url' => 'http://www.qualcomm.cn/generate_204',
'interval' => 3600
],
[
'name' => 'PROXY',
'type' => 'select',
'content' => [
'left-proxies' => ['香港', '日本', '坡坡', '台湾', '美国', '韩国', '中继']
]
],
[
'name' => 'Final',
'type' => 'select',
'content' => [
'left-proxies' => ['PROXY', 'DIRECT']
]
],
[
'name' => 'ForeignMedia',
'type' => 'select',
'content' => [
'left-proxies' => ['PROXY', '香港', '日本', '坡坡', '台湾', '美国', '韩国', '中继']
]
],
[
'name' => 'DomesticMedia',
'type' => 'select',
'content' => [
'left-proxies' => ['DIRECT', 'PROXY', '中继']
]
],
[
'name' => 'Apple',
'type' => 'select',
'content' => [
'left-proxies' => ['DIRECT', 'PROXY']
]
],
[
'name' => 'Hijacking',
'type' => 'select',
'content' => [
'left-proxies' => ['DIRECT', 'REJECT']
]
]
]
],
'ConnersHua_BacktoCN' => [
'Checks' => [],
'ProxyGroup' => [
[
'name' => 'PROXY',
'type' => 'select',
'content' => [
'regex' => '(中继|中转|中国|回国|China)'
]
]
]
],
'123456' => [
'Checks' => [],
'ProxyGroup' => [
[
'name' => 'Proxy',
'type' => 'select',
'content' => [
'regex' => '(.*)'
]
],
[
'name' => 'Domestic',
'type' => 'select',
'content' => [
'left-proxies' => ['DIRECT', 'Proxy']
]
],
[
'name' => 'AsianTV',
'type' => 'select',
'content' => [
'left-proxies' => ['Domestic', 'Proxy']
]
],
[
'name' => 'GlobalTV',
'type' => 'select',
'content' => [
'left-proxies' => ['Proxy']
]
],
[
'name' => 'Others',
'type' => 'select',
'content' => [
'left-proxies' => ['Proxy', 'Domestic']
]
]
]
]
];
return $Apps_Profiles;
}
}

@ -4,16 +4,10 @@ namespace App\Services;
class Config
{
// TODO: remove
public static function get($key)
{
global $System_Config;
return $System_Config[$key];
}
public static function set($key, $value)
{
global $System_Config;
$System_Config[$key] = $value;
return $_ENV[$key];
}
public static function getPublicConfig()
@ -51,7 +45,16 @@ class Config
'enable_kill' => self::get('enable_kill'),
'custom_invite_price' => self::get('custom_invite_price'),
'captcha_provider' => self::get('captcha_provider'),
'enable_email_verify' => self::get('enable_email_verify')
'enable_email_verify' => self::get('enable_email_verify'),
'protocol_specify' => self::get('protocol_specify'),
'subscribeLog' => self::get('subscribeLog'),
'subscribeLog_keep_days' => self::get('subscribeLog_keep_days'),
'enable_auto_detect_ban' => self::get('enable_auto_detect_ban'),
'auto_detect_ban_type' => self::get('auto_detect_ban_type'),
'auto_detect_ban_number' => self::get('auto_detect_ban_number'),
'auto_detect_ban_time' => self::get('auto_detect_ban_time'),
'auto_detect_ban' => self::get('auto_detect_ban'),
'subscribe_client' => self::get('subscribe_client')
];
}
@ -84,9 +87,8 @@ class Config
public static function getMuKey()
{
global $System_Config;
$muKeyList = array_key_exists('muKeyList', $System_Config) ? $System_Config['muKeyList'] : [' '];
return array_merge(explode(',', $System_Config['muKey']), $muKeyList);
$muKeyList = array_key_exists('muKeyList', $_ENV) ? $_ENV['muKeyList'] : [' '];
return array_merge(explode(',', $_ENV['muKey']), $muKeyList);
}
public static function getSupportParam($type)

@ -0,0 +1,201 @@
<?php
/**
* BitPayX - Yet Another Payment for FIAT
* Make Payment Safer, Faster, Cheaper.
*
* Date: 2019/6/15
* Time: 10:08 AM PST
*/
namespace App\Services\Gateway;
use App\Models\Paylist;
use App\Services\Auth;
use App\Services\Config;
use App\Services\View;
class BitPayX extends AbstractPayment
{
private $bitpayAppSecret;
private $bitpayGatewayUri;
/*****************************************************************
* BitPay Helper Function
******************************************************************/
public function __construct($bitpayAppSecret)
{
$this->bitpayAppSecret = $bitpayAppSecret;
$this->bitpayGatewayUri = 'https://api.mugglepay.com/v1/';
}
public function prepareSignId($tradeno)
{
$data_sign = array();
$data_sign['merchant_order_id'] = $tradeno;
$data_sign['secret'] = $this->bitpayAppSecret;
$data_sign['type'] = 'FIAT';
ksort($data_sign);
return http_build_query($data_sign);
}
public function sign($data)
{
return strtolower(md5(md5($data) . $this->bitpayAppSecret));
}
public function verify($data, $signature)
{
$mySign = $this->sign($data);
return $mySign === $signature;
}
public function mprequest($data, $type = 'pay')
{
$headers = array('content-type: application/json', 'token: ' . $this->bitpayAppSecret);
$curl = curl_init();
if ($type === 'pay') {
$this->bitpayGatewayUri .= 'orders';
curl_setopt($curl, CURLOPT_URL, $this->bitpayGatewayUri);
curl_setopt($curl, CURLOPT_POST, 1);
$data_string = json_encode($data);
curl_setopt($curl, CURLOPT_POSTFIELDS, $data_string);
} elseif ($type === 'query') {
$this->bitpayGatewayUri .= 'orders/merchant_order_id/status?id=' . $data['merchant_order_id'];
curl_setopt($curl, CURLOPT_URL, $this->bitpayGatewayUri);
curl_setopt($curl, CURLOPT_HTTPGET, 1);
}
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
$data = curl_exec($curl);
curl_close($curl);
return $data;
}
public function query($tradeNo)
{
$data['merchant_order_id'] = $tradeNo;
return json_decode($this->mprequest($data, 'query'), true);
}
/*****************************************************************
* Abstract Payment Implentation
******************************************************************/
public function purchase($request, $response, $args)
{
$price = $request->getParam('price');
$type = $request->getParam('type');
// file_put_contents(BASE_PATH.'/bitpay_purchase.log', $price . " " . $type . "\r\n", FILE_APPEND);
if ($price <= 0) {
return json_encode(['errcode' => -1, 'errmsg' => '请输入合理的金额。']);
}
$user = Auth::getUser();
$pl = new Paylist();
$pl->userid = $user->id;
$pl->total = $price;
$pl->tradeno = self::generateGuid();
$pl->save();
$data['merchant_order_id'] = $pl->tradeno;
$data['price_amount'] = (float)$price;
$data['price_currency'] = 'CNY';
if ($type === 'WECHAT' || $type === 'ALIPAY') {
$data['pay_currency'] = $type;
}
$data['title'] = '支付单号:' . $pl->tradeno;
$data['description'] = '充值:' . $price . ' 元';
$data['callback_url'] = Config::get('baseUrl') . '/payment/notify';
$data['success_url'] = Config::get('baseUrl') . '/user/payment/return?merchantTradeNo=';
$data['success_url'] .= $pl->tradeno;
$data['cancel_url'] = $data['success_url'];
$str_to_sign = $this->prepareSignId($pl->tradeno);
$data['token'] = $this->sign($str_to_sign);
$result = json_decode($this->mprequest($data), true);
$result['pid'] = $pl->tradeno;
// file_put_contents(BASE_PATH.'/bitpay_purchase.log', json_encode($data)."\r\n", FILE_APPEND);
// file_put_contents(BASE_PATH.'/bitpay_purchase.log', json_encode($result)."\r\n", FILE_APPEND);
if ($result['status'] === 200 || $result['status'] === 201) {
$result['payment_url'] .= '&lang=zh';
return json_encode(array('url' => $result['payment_url'], 'errcode' => 0, 'pid' => $pl->id));
}
return json_encode(['errcode' => -1, 'errmsg' => $result . error]);
}
public function notify($request, $response, $args)
{
if (!$this->bitpayAppSecret || $this->bitpayAppSecret === '') {
$return = [];
$return['status'] = 400;
echo json_encode($return);
return;
}
$inputString = file_get_contents('php://input', 'r');
$inputStripped = str_replace(array("\r", "\n", "\t", "\v"), '', $inputString);
$inputJSON = json_decode($inputStripped, true); //convert JSON into array
$data = array();
if ($inputJSON !== null) {
$data['status'] = $inputJSON['status'];
$data['order_id'] = $inputJSON['order_id'];
$data['merchant_order_id'] = $inputJSON['merchant_order_id'];
$data['price_amount'] = $inputJSON['price_amount'];
$data['price_currency'] = $inputJSON['price_currency'];
$data['created_at_t'] = $inputJSON['created_at_t'];
}
// file_put_contents(BASE_PATH.'/bitpay_notify.log', json_encode($data)."\r\n", FILE_APPEND);
// 准备待签名数据
$str_to_sign = $this->prepareSignId($inputJSON['merchant_order_id']);
$resultVerify = $this->verify($str_to_sign, $inputJSON['token']);
$isPaid = $data !== null && $data['status'] !== null && $data['status'] === 'PAID';
// file_put_contents(BASE_PATH.'/bitpay_notify.log', $resultVerify."\r\n".$isPaid."\r\n", FILE_APPEND);
if ($resultVerify && $isPaid) {
$this->postPayment($data['merchant_order_id'], 'BitPayX');
// echo 'SUCCESS';
$return = [];
$return['status'] = 200;
echo json_encode($return);
} else {
// echo 'FAIL';
$return = [];
$return['status'] = 400;
echo json_encode($return);
}
}
public function getPurchaseHTML()
{
return View::getSmarty()->fetch('user/bitpayx.tpl');
}
public function getReturnHTML($request, $response, $args)
{
$pid = $_GET['merchantTradeNo'];
$p = Paylist::where('tradeno', '=', $pid)->first();
$money = $p->total;
if ($p->status === 1) {
$success = 1;
} else {
$data = $this->query($pid);
$isPaid = $data !== null && $data['order'] !== null && $data['order']['status'] !== null && $data['order']['status'] === 'PAID';
// file_put_contents(BASE_PATH.'/bitpay_return.log', $pid . " " . $data ."\r\n". $isPaid . "\r\n", FILE_APPEND);
if ($isPaid) {
$this->postPayment($pid, 'BitPayX');
$success = 1;
} else {
$success = 0;
}
}
return View::getSmarty()->assign('money', $money)->assign('success', $success)->fetch('user/pay_success.tpl');
}
public function getStatus($request, $response, $args)
{
$return = [];
$p = Paylist::where('tradeno', $_POST['pid'])->first();
$return['ret'] = 1;
$return['result'] = $p->status;
// file_put_contents(BASE_PATH.'/bitpay_status_success.log', json_encode($return)."\r\n", FILE_APPEND);
return json_encode($return);
}
}

@ -27,7 +27,7 @@ class TrimePay extends AbstractPayment
public function __construct($appSecret)
{
$this->appSecret = $appSecret;
$this->gatewayUri = 'https://api.Trimepay.com/gateway/';
$this->gatewayUri = 'https://api.payease.io/gateway/';
}

@ -9,7 +9,7 @@
namespace App\Services;
use App\Services\Gateway\{
AopF2F, Codepay, DoiAMPay, PaymentWall, ChenPay, SPay, TrimePay, PAYJS
AopF2F, Codepay, DoiAMPay, PaymentWall, ChenPay, SPay, TrimePay, PAYJS, BitPayX
};
class Payment
@ -32,6 +32,8 @@ class Payment
return new ChenPay();
case ('trimepay'):
return new TrimePay(Config::get('trimepay_secret'));
case ('bitpayx'):
return new BitPayX(Config::get('bitpay_secret'));
case ('payjs'):
return new PAYJS(Config::get('payjs_key'));
default:

@ -0,0 +1,18 @@
<?php
/**
* Created by PhpStorm.
* User: rico93
* Date: 2019/1/26
* Time: 12:22
*/
namespace App\Utils;
use RemotelyLiving\PHPDNS\Resolvers\GoogleDNS;
class DNSoverHTTPS
{
public static function gethostbyName($hostname){
$resolver = new GoogleDNS();
return $resolver->getARecords($hostname)->pickFirst()->toArray()["IPAddress"];
}
}

@ -13,11 +13,17 @@ class TelegramProcess
{
private static $all_rss = [
'clean_link' => '重置订阅',
'?mu=0' => 'SSR普通订阅',
'?mu=1' => 'SSR单端口订阅',
'?mu=3' => 'SS/SSD订阅',
'?mu=2' => 'V2ray订阅',
'?mu=4' => 'Clash订阅'];
'?sub=1' => 'SSR订阅',
'?sub=3' => 'V2ray订阅',
'?sub=5' => 'Shadowrocket',
'?sub=4' => 'Kitsunebi or V2rayNG or BifrostV',
'?surge=2' => 'Surge 2.x',
'?surge=3' => 'Surge 3.x',
'?ssd=1' => 'SSD',
'?clash=1' => 'Clash',
'?surfboard=1' => 'Surfboard',
'?quantumult=3' => 'Quantumult(完整配置)'
];
private static function callback_bind_method($bot, $callback)
{
@ -28,7 +34,26 @@ class TelegramProcess
$reply_message = '???';
if ($user != null) {
switch (true) {
case (strpos($callback_data, 'mu')):
case $callback_data == '?quantumult=3':
$ssr_sub_token = LinkController::GenerateSSRSubCode($user->id, 0);
$baseUrl = Config::get('baseUrl');
$keyboard = new \TelegramBot\Api\Types\Inline\InlineKeyboardMarkup(
[
[
['text' => '点击跳转', 'url' => $baseUrl . '/jump.html?url=quantumult://settings?configuration=clipboard']
]
]
);
$bot->sendMessage($user->get_user_attributes('telegram_id'), "两种方法:\n 方法一:\n 1.点击打开以下配置文件\n 2. 选择分享->拷贝到\"Quantumult\"\n 3.选择更新配置\n 方法二:\n 1.长按配置文件\n 2. 选择更多->分享->拷贝\n 3.点击跳转APP,到Quan中保存", $parseMode = null, $disablePreview = false, $replyToMessageId = null, $replyMarkup = $keyboard);
$filepath = '/tmp/tg_' . $ssr_sub_token . '.txt';
$fh = fopen($filepath, 'w+');
$string = LinkController::GetQuantumult($user, 3);
fwrite($fh, $string);
fclose($fh);
$bot->sendDocument($user->get_user_attributes('telegram_id'), new \CURLFile($filepath, '', 'quantumult_' . $ssr_sub_token . '.conf'));
unlink($filepath);
break;
case (strpos($callback_data, 'sub') or strpos($callback_data, 'surge') or strpos($callback_data, 'clash') or strpos($callback_data, 'surfboard')):
$ssr_sub_token = LinkController::GenerateSSRSubCode($user->id, 0);
$subUrl = Config::get('subUrl');
$reply_message = self::$all_rss[$callback_data] . ': ' . $subUrl . $ssr_sub_token . $callback_data . PHP_EOL;
@ -120,7 +145,7 @@ class TelegramProcess
/help 获取帮助信息
/rss 获取节点订阅';
if ($user == null) {
$help_list .= PHP_EOL . '您未绑定本站账号,您可以进入网站的“资料编辑”,在右下方绑定您的账号';
$reply['message'] .= PHP_EOL . '您未绑定本站账号,您可以进入网站的“资料编辑”,在右下方绑定您的账号';
}
break;
default:

@ -450,9 +450,9 @@ class Tools
if ($server[1] == '0' || $server[1] == '') {
$item['port'] = 443;
} else {
$item['port'] = (int)$server[1];
$item['port'] = (int) $server[1];
}
$item['aid'] = (int)$server[2];
$item['aid'] = (int) $server[2];
$item['net'] = 'tcp';
$item['type'] = 'none';
if (count($server) >= 4) {
@ -468,18 +468,23 @@ class Tools
$item['type'] = $server[4];
} elseif ($server[4] == 'ws') {
$item['net'] = 'ws';
} elseif ($server[4] == 'tls') {
$item['tls'] = 'tls';
}
}
if (count($server) >= 6) {
if (count($server) >= 6 && $server[5] != '') {
$item = array_merge($item, URL::parse_args($server[5]));
if (array_key_exists('server', $item)) {
$item['add'] = $item['server'];
unset($item['server']);
}
if (array_key_exists('outside_port', $item)) {
$item['port'] = (int)$item['outside_port'];
$item['port'] = (int) $item['outside_port'];
unset($item['outside_port']);
}
if (isset($item['inside_port'])) {
unset($item['inside_port']);
}
}
return $item;
}
@ -494,7 +499,7 @@ class Tools
{
$server = explode(';', $node);
$item = [
'host' => '',
'host' => 'windowsupdate.microsoft.com',
'path' => '',
'net' => 'ws',
'tls' => ''
@ -503,7 +508,7 @@ class Tools
if ($server[1] == '0' || $server[1] == '') {
$item['port'] = 443;
} else {
$item['port'] = (int)$server[1];
$item['port'] = (int) $server[1];
}
if (count($server) >= 4) {
$item['net'] = $server[3];
@ -525,10 +530,266 @@ class Tools
unset($item['server']);
}
if (array_key_exists('outside_port', $item)) {
$item['port'] = (int)$item['outside_port'];
$item['port'] = (int) $item['outside_port'];
unset($item['outside_port']);
}
}
return $item;
}
public static function OutPort($server, $node_name, $mu_port)
{
$node_server = explode(';', $server);
$node_port = $mu_port;
if (strpos($node_server[1], 'port') !== false) {
$item = URL::parse_args($node_server[1]);
if (strpos($item['port'], '#') !== false) { // 端口偏移,指定端口,格式:8.8.8.8;port=80#1080
if (strpos($item['port'], '+') !== false) { // 多个单端口节点,格式:8.8.8.8;port=80#1080+443#8443
$args_explode = explode('+', $item['port']);
foreach ($args_explode as $arg) {
if ((int) substr($arg, 0, strpos($arg, '#')) == $mu_port) {
$node_port = (int) substr($arg, strpos($arg, '#') + 1);
}
}
} else {
if ((int) substr($item['port'], 0, strpos($item['port'], '#')) == $mu_port) {
$node_port = (int) substr($item['port'], strpos($item['port'], '#') + 1);
}
}
} else { // 端口偏移,偏移端口,格式:8.8.8.8;port=1000 or 8.8.8.8;port=-1000
$node_port = ($mu_port + (int) $item['port']);
}
}
return [
'name' => ($node_name . ' - ' . $node_port . ' 单端口'),
'address' => $node_server[0],
'port' => $node_port
];
}
public static function get_MuOutPortArray($server)
{
$type = 0; //偏移
$port = []; //指定
$node_server = explode(';', $server);
if (strpos($node_server[1], 'port') !== false) {
$item = URL::parse_args($node_server[1]);
if (strpos($item['port'], '#') !== false) {
if (strpos($item['port'], '+') !== false) {
$args_explode = explode('+', $item['port']);
foreach ($args_explode as $arg) {
$port[substr($arg, 0, strpos($arg, '#'))] = (int) substr($arg, strpos($arg, '#') + 1);
}
} else {
$port[substr($item['port'], 0, strpos($item['port'], '#'))] = (int) substr($item['port'], strpos($item['port'], '#') + 1);
}
} else {
$$type = (int) $item['port'];
}
}
return [
'type' => $type,
'port' => $port
];
}
// 请将冷门的国家或地区放置在上方,热门的中继起源放置在下方
// 以便于兼容如:【上海 -> 美国】等节点名称
private static $emoji = [
"🇦🇷" => [
"阿根廷"
],
"🇦🇹" => [
"奥地利",
"维也纳"
],
"🇦🇺" => [
"澳大利亚",
"悉尼"
],
"🇧🇷" => [
"巴西",
"圣保罗"
],
"🇨🇦" => [
"加拿大",
"蒙特利尔",
"温哥华"
],
"🇨🇭" => [
"瑞士",
"苏黎世"
],
"🇩🇪" => [
"德国",
"法兰克福"
],
"🇫🇮" => [
"芬兰",
"赫尔辛基"
],
"🇫🇷" => [
"法国",
"巴黎"
],
"🇬🇧" => [
"英国",
"伦敦"
],
"🇮🇩" => [
"印尼",
"印度尼西亚",
"雅加达"
],
"🇮🇪" => [
"爱尔兰",
"都柏林"
],
"🇮🇳" => [
"印度",
"孟买"
],
"🇮🇹" => [
"意大利",
"米兰"
],
"🇰🇵" => [
"朝鲜"
],
"🇲🇾" => [
"马来西亚"
],
"🇳🇱" => [
"荷兰",
"阿姆斯特丹"
],
"🇵🇭" => [
"菲律宾"
],
"🇷🇴" => [
"罗马尼亚"
],
"🇷🇺" => [
"俄罗斯",
"伯力",
"莫斯科",
"圣彼得堡",
"西伯利亚",
"新西伯利亚"
],
"🇸🇬" => [
"新加坡"
],
"🇹🇭" => [
"泰国",
"曼谷"
],
"🇹🇷" => [
"土耳其",
"伊斯坦布尔"
],
"🇺🇲" => [
"美国",
"波特兰",
"俄勒冈",
"凤凰城",
"费利蒙",
"硅谷",
"拉斯维加斯",
"洛杉矶",
"圣克拉拉",
"西雅图",
"芝加哥",
"沪美"
],
"🇻🇳" => [
"越南"
],
"🇿🇦" => [
"南非"
],
"🇰🇷" => [
"韩国",
"首尔"
],
"🇲🇴" => [
"澳门"
],
"🇯🇵" => [
"日本",
"东京",
"大阪",
"埼玉",
"沪日"
],
"🇹🇼" => [
"台湾",
"台北",
"台中"
],
"🇭🇰" => [
"香港",
"深港"
],
"🇨🇳" => [
"中国",
"江苏",
"北京",
"上海",
"深圳",
"杭州",
"徐州",
"宁波",
"镇江"
]
];
public static function addEmoji($Name)
{
$done = [
'index' => -1,
'emoji' => ''
];
foreach (self::$emoji as $key => $value) {
foreach ($value as $item) {
$index = strpos($Name, $item);
if ($index !== false) {
$done['index'] = $index;
$done['emoji'] = $key;
continue 2;
}
}
}
return ($done['index'] == -1
? $Name
: ($done['emoji'] . ' ' . $Name));
}
/**
* Add files and sub-directories in a folder to zip file.
* @param string $folder
* @param ZipArchive $zipFile
* @param int $exclusiveLength Number of text to be exclusived from the file path.
*/
public static function folderToZip($folder, &$zipFile, $exclusiveLength)
{
$handle = opendir($folder);
while (false !== $f = readdir($handle)) {
if ($f != '.' && $f != '..') {
$filePath = "$folder/$f";
// Remove prefix from file path before add to zip.
$localPath = substr($filePath, $exclusiveLength);
if (is_file($filePath)) {
$zipFile->addFile($filePath, $localPath);
} elseif (is_dir($filePath)) {
// Add sub-directory.
$zipFile->addEmptyDir($localPath);
self::folderToZip($filePath, $zipFile, $exclusiveLength);
}
}
}
closedir($handle);
}
}

@ -7,6 +7,7 @@ use App\Models\Node;
use App\Models\Relay;
use App\Services\Config;
use App\Controllers\LinkController;
use App\Controllers\ConfController;
class URL
{
@ -58,14 +59,14 @@ class URL
return 2;
}
return 4;//SSR need origin plain
return 4; //SSR need origin plain
}
if (strpos($obfs, '_compatible') === false) {
return 1;
}
return 5;//SS need plain
return 5; //SS need plain
}
return 3;
@ -138,30 +139,34 @@ class URL
return $new_user;
}
public static function getAllItems($user, $is_mu = 0, $is_ss = 0)
public static function getAllItems($user, $is_mu = 0, $is_ss = 0, $emoji = 0)
{
$return_array = array();
if ($user->is_admin) {
$nodes = Node::where(
static function ($query) {
$query->where('sort', 0)
->orwhere('sort', 10)
->orwhere('sort', 13);
$query->where('sort', 0)->orwhere('sort', 10);
}
)->where('type', '1')->orderBy('name')->get();
)
->where('type', '1')
->orderBy('name')
->get();
} else {
$nodes = Node::where(
static function ($query) {
$query->where('sort', 0)
->orwhere('sort', 10)
->orwhere('sort', 13);
$query->where('sort', 0)->orwhere('sort', 10);
}
)->where(
static function ($query) use ($user) {
$query->where('node_group', '=', $user->node_group)
->orWhere('node_group', '=', 0);
}
)->where('type', '1')->where('node_class', '<=', $user->class)->orderBy('name')->get();
)
->where(
static function ($query) use ($user) {
$query->where('node_group', '=', $user->node_group)
->orWhere('node_group', '=', 0);
}
)
->where('type', '1')
->where('node_class', '<=', $user->class)
->orderBy('name')
->get();
}
if ($is_mu) {
if ($user->is_admin) {
@ -198,12 +203,12 @@ class URL
if (($relay_rule != null) && $relay_rule->dist_node() != null) {
$relay_rule_id = $relay_rule->id;
}
$item = self::getItem($user, $node, 0, $relay_rule_id, $is_ss);
$item = self::getItem($user, $node, 0, $relay_rule_id, $is_ss, $emoji);
if ($item != null) {
$return_array[] = $item;
}
} else {
$item = self::getItem($user, $node, 0, 0, $is_ss);
$item = self::getItem($user, $node, 0, 0, $is_ss, $emoji);
if ($item != null) {
$return_array[] = $item;
}
@ -211,18 +216,18 @@ class URL
}
if ($node->custom_rss == 1 && $node->mu_only != -1 && $is_mu != 0) {
foreach ($mu_nodes as $mu_node) {
if ($node->sort == 10) {
if ($node->sort == 10) { // ss 中转
$relay_rule_id = 0;
$relay_rule = Tools::pick_out_relay_rule($node->id, $mu_node->server, $relay_rules);
if (($relay_rule != null) && $relay_rule->dist_node() != null) {
$relay_rule_id = $relay_rule->id;
}
$item = self::getItem($user, $node, $mu_node->server, $relay_rule_id, $is_ss);
$item = self::getItem($user, $node, $mu_node->server, $relay_rule_id, $is_ss, $emoji);
if ($item != null) {
$return_array[] = $item;
}
} else {
$item = self::getItem($user, $node, $mu_node->server, 0, $is_ss);
$item = self::getItem($user, $node, $mu_node->server, 0, $is_ss, $emoji);
if ($item != null) {
$return_array[] = $item;
}
@ -230,28 +235,71 @@ class URL
}
}
}
return $return_array;
}
public static function getAllUrl($user, $is_mu, $is_ss = 0)
public static function getAllUrl($user, $is_mu, $is_ss = 0, $getV2rayPlugin = 1)
{
$return_url = '';
if (!$is_ss) {
$return_url .= self::getUserTraffic($user, $is_mu) . PHP_EOL;
$return_url .= self::getUserClassExpiration($user, $is_mu) . PHP_EOL;
}
if (strtotime($user->expire_in) < time()) {
return $return_url;
}
if (Config::get('mergeSub') == 'true') {
$items = array_merge(self::getAllItems($user, 1, $is_ss), self::getAllItems($user, 0, $is_ss));
} else {
$items = self::getAllItems($user, $is_mu, $is_ss);
$items = self::getAllItems($user, $is_mu, $is_ss);
foreach ($items as $item) {
$return_url .= self::getItemUrl($item, $is_ss) . PHP_EOL;
}
$is_mu = $is_mu == 0 ? 1 : 0;
$items = self::getAllItems($user, $is_mu, $is_ss);
foreach ($items as $item) {
$return_url .= self::getItemUrl($item, $is_ss) . PHP_EOL;
}
return $return_url;
}
/**
* 获取全部节点 Url
*
* @param object $user 用户
* @param int $is_ss 是否 ss
* @param int $getV2rayPlugin 是否获取 V2rayPlugin 节点
* @param array $Rule 节点筛选规则
* @param bool $find 是否筛选节点
*
* @return string
*/
public static function get_NewAllUrl($user, $is_ss, $getV2rayPlugin, $Rule, $find, $emoji = 0)
{
$return_url = '';
if (strtotime($user->expire_in) < time()) {
return $return_url;
}
if ($getV2rayPlugin === 0) {
$items = array_merge(
self::getAllItems($user, 0, $is_ss, $emoji),
self::getAllItems($user, 1, $is_ss, $emoji)
);
} else {
$items = array_merge(
self::getAllItems($user, 0, $is_ss, $emoji),
self::getAllItems($user, 1, $is_ss, $emoji),
self::getAllV2RayPluginItems($user, $emoji)
);
}
if ($find) {
foreach ($items as $item) {
$item = ConfController::getMatchProxy($item, $Rule);
if ($item !== null) {
$return_url .= self::getItemUrl($item, $is_ss) . PHP_EOL;
}
}
} else {
foreach ($items as $item) {
$return_url .= self::getItemUrl($item, $is_ss) . PHP_EOL;
}
}
return $return_url;
}
@ -259,14 +307,28 @@ class URL
{
$ss_obfs_list = Config::getSupportParam('ss_obfs');
if (!$is_ss) {
$ssurl = $item['address'] . ':' . $item['port'] . ':' . $item['protocol'] . ':' . $item['method'] . ':' . $item['obfs'] . ':' . Tools::base64_url_encode($item['passwd']) . '/?obfsparam=' . Tools::base64_url_encode($item['obfs_param']) . '&protoparam=' . Tools::base64_url_encode($item['protocol_param']) . '&remarks=' . Tools::base64_url_encode($item['remark']) . '&group=' . Tools::base64_url_encode($item['group']);
$ssurl = $item['address'] . ':' . $item['port'] . ':' . $item['protocol'] .
':' . $item['method'] . ':' . $item['obfs'] . ':' .
Tools::base64_url_encode(
$item['passwd']
) . '/?obfsparam=' . Tools::base64_url_encode(
$item['obfs_param']
) . '&protoparam=' . Tools::base64_url_encode(
$item['protocol_param']
) . '&remarks=' . Tools::base64_url_encode(
$item['remark']
) . '&group=' . Tools::base64_url_encode(
$item['group']
);
return 'ssr://' . Tools::base64_url_encode($ssurl);
}
if ($is_ss == 2) {
$personal_info = $item['method'] . ':' . $item['passwd'] . '@' . $item['address'] . ':' . $item['port'];
$ssurl = 'ss://' . Tools::base64_url_encode($personal_info);
$ssurl .= '#' . rawurlencode(Config::get('appName') . ' - ' . $item['remark']);
$ssurl .= (Config::get('add_appName_to_ss_uri') == 'true'
? '#' . rawurlencode(Config::get('appName') . ' - ' . $item['remark'])
: '#' . rawurlencode($item['remark']));
} else {
$personal_info = $item['method'] . ':' . $item['passwd'];
$ssurl = 'ss://' . Tools::base64_url_encode($personal_info) . '@' . $item['address'] . ':' . $item['port'];
@ -282,50 +344,149 @@ class URL
if ($item['obfs_param'] != '' && $item['obfs'] != 'v2ray') {
$plugin .= ';obfs-host=' . $item['obfs_param'];
}
$ssurl .= '?plugin=' . rawurlencode($plugin);
$ssurl .= '/?plugin=' . rawurlencode($plugin) . '&group=' . Tools::base64_url_encode(Config::get('appName'));
} else {
$ssurl .= '/?group=' . Tools::base64_url_encode(Config::get('appName'));
}
$ssurl .= '#' . rawurlencode(Config::get('appName') . ' - ' . $item['remark']);
$ssurl .= (Config::get('add_appName_to_ss_uri') == 'true'
? '#' . rawurlencode(Config::get('appName') . ' - ' . $item['remark'])
: '#' . rawurlencode($item['remark']));
}
return $ssurl;
}
public static function getV2Url($user, $node, $arrout = 0)
/**
* 获取 V2RayPlugin 全部节点
*
* @param object $user 用户
*
* @return array
*/
public static function getAllV2RayPluginItems($user, $emoji = 0)
{
$return_array = array();
if ($user->is_admin) {
$nodes = Node::where('sort', 13)
->where('type', '1')
->orderBy('name')
->get();
} else {
$nodes = Node::where('sort', 13)
->where(
static function ($query) use ($user) {
$query->where('node_group', '=', $user->node_group)
->orWhere('node_group', '=', 0);
}
)
->where('type', '1')
->where('node_class', '<=', $user->class)
->orderBy('name')
->get();
}
foreach ($nodes as $node) {
$item = self::getV2RayPluginItem($user, $node, $emoji);
if ($item != null) {
$return_array[] = $item;
}
}
return $return_array;
}
/**
* 获取 V2RayPlugin 节点
*
* @param object $user 用户
* @param object $node 节点
*
* @return array
*/
public static function getV2RayPluginItem($user, $node, $emoji = 0)
{
// 非 AEAD 加密无法使用
if (!in_array($user->method, Config::getSupportParam('ss_aead_method'))) {
return null;
}
$return_array = Tools::ssv2Array($node->server);
$return_array['remark'] = ($emoji == 1
? Tools::addEmoji($node->name)
: $node->name);
$return_array['address'] = $return_array['add'];
$return_array['method'] = $user->method;
$return_array['passwd'] = $user->passwd;
$return_array['protocol'] = 'origin';
$return_array['protocol_param'] = '';
$return_array['obfs'] = 'v2ray';
if ($return_array['tls'] == 'tls' && $return_array['net'] == 'ws') {
$return_array['obfs_param'] = ('mode=ws;security=tls;path=' . $return_array['path'] .
';host=' . $return_array['host']);
} else {
$return_array['obfs_param'] = ('mode=ws;security=none;path=' . $return_array['path'] .
';host=' . $return_array['host']);
}
$return_array['path'] = ($return_array['path'] . '?redirect=' . $user->getMuMd5());
$return_array['class'] = $node->node_class;
$return_array['group'] = Config::get('appName');
return $return_array;
}
public static function getV2Url($user, $node, $arrout = 0, $emoji = 0)
{
$item = Tools::v2Array($node->server);
$item['v'] = '2';
$item['ps'] = $node->name;
$item['ps'] = ($emoji == 1
? Tools::addEmoji($node->name)
: $node->name);
$item['id'] = $user->getUuid();
$item['class'] = $node->node_class;
if ($arrout == 0) {
return 'vmess://' . base64_encode(json_encode($item, JSON_UNESCAPED_UNICODE));
return 'vmess://' . base64_encode(
json_encode($item, 320)
);
}
return $item;
}
public static function getAllVMessUrl($user, $arrout = 0)
public static function getAllVMessUrl($user, $arrout = 0, $emoji = 0)
{
$nodes = Node::where(
static function ($query) {
$query->where('sort', 11)
->orwhere('sort', 12);
}
)->where(
static function ($query) use ($user) {
$query->where('node_group', '=', $user->node_group)
->orWhere('node_group', '=', 0);
}
)->where('type', '1')->where('node_class', '<=', $user->class)->orderBy('name')->get();
if ($user->is_admin) {
$nodes = Node::where(
static function ($query) {
$query->where('sort', 11)
->orwhere('sort', 12);
}
)
->where('type', '1')
->orderBy('name')
->get();
} else {
$nodes = Node::where(
static function ($query) {
$query->where('sort', 11)
->orwhere('sort', 12);
}
)->where(
static function ($query) use ($user) {
$query->where('node_group', '=', $user->node_group)
->orWhere('node_group', '=', 0);
}
)
->where('type', '1')
->where('node_class', '<=', $user->class)
->orderBy('name')
->get();
}
if ($arrout == 0) {
$result = '';
foreach ($nodes as $node) {
$result .= (self::getV2Url($user, $node, $arrout) . "\n");
$result .= (self::getV2Url($user, $node, $arrout, $emoji) . "\n");
}
} else {
$result = [];
foreach ($nodes as $node) {
$result[] = self::getV2Url($user, $node, $arrout);
$result[] = self::getV2Url($user, $node, $arrout, $emoji);
}
}
return $result;
@ -344,7 +505,7 @@ class URL
$array_all['traffic_used'] = Tools::flowToGB($user->u + $user->d);
$array_all['traffic_total'] = Tools::flowToGB($user->transfer_enable);
$array_all['expiry'] = $user->class_expire;
$array_all['url'] = Config::get('subUrl') . LinkController::GenerateSSRSubCode($user->id, 0) . '?mu=3';
$array_all['url'] = Config::get('subUrl') . LinkController::GenerateSSRSubCode($user->id, 0) . '?ssd=1';
$plugin_options = '';
if (strpos($user->obfs, 'http') != false) {
$plugin_options = 'obfs=http';
@ -353,25 +514,35 @@ class URL
$plugin_options = 'obfs=tls';
}
if ($plugin_options != '') {
$array_all['plugin'] = 'simple-obfs';//目前只支持这个
$array_all['plugin'] = 'simple-obfs'; //目前只支持这个
$array_all['plugin_options'] = $plugin_options;
if ($user->obfs_param != '') {
$array_all['plugin_options'] .= ';obfs-host=' . $user->obfs_param;
}
}
$nodes_muport = Node::where('type', 1)->where('sort', '=', 9)->orderBy('name')->get();
$nodes_muport = Node::where('type', 1)
->where('sort', '=', 9)
->orderBy('name')
->get();
$array_server = array();
$nodes = Node::where('type', 1)->where('node_class', '<=', $user->class)
->where(static function ($func) {
$func->where('sort', '=', 0)
->orwhere('sort', '=', 10)
->orwhere('sort', '=', 13);
})
->where(static function ($func) use ($user) {
$func->where('node_group', '=', $user->node_group)
->orwhere('node_group', '=', 0);
})->orderBy('name')->get();
$nodes = Node::where('type', 1)
->where('node_class', '<=', $user->class)
->where(
static function ($func) {
$func->where('sort', '=', 0)
->orwhere('sort', '=', 10)
->orwhere('sort', '=', 13);
}
)
->where(
static function ($func) use ($user) {
$func->where('node_group', '=', $user->node_group)
->orwhere('node_group', '=', 0);
}
)
->orderBy('name')
->get();
$server_index = 1;
foreach ($nodes as $node) {
$server = array();
@ -379,25 +550,29 @@ class URL
if (self::CanMethodConnect($user->method) != 2) {
continue;
}
$ssv2Array = Tools::ssv2Array($node->server);
$server['server'] = $ssv2Array['add'];
$server = Tools::ssv2Array($node->server);
$server['server'] = $server['add'];
$server['id'] = $server_index;
$server['remarks'] = $node->name . ' - 单多' . $ssv2Array['port'] . '端口';
$server['port'] = $ssv2Array['port'];
$server['remarks'] = $node->name . ' - 单多' . $server['port'] . '端口';
$server['encryption'] = $user->method;
$server['password'] = $user->passwd;
$server['plugin'] = 'v2ray';
if ($ssv2Array['tls'] == 'tls' && $ssv2Array['net'] == 'ws') {
$server['plugin_options'] = 'mode=ws;security=tls;path=' . $ssv2Array['path'] . ';host=' . $user->getMuMd5();
$server['path'] = ($server['path'] . '?redirect=' . $user->getMuMd5());
if ($server['tls'] == 'tls' && $server['net'] == 'ws') {
$server['obfs_param'] = ('mode=ws;security=tls;path=' . $server['path'] .
';host=' . $server['host']);
} else {
$server['plugin_options'] = 'mode=ws;security=none;path=' . $ssv2Array['path'] . ';host=' . $user->getMuMd5();
$server['obfs_param'] = ('mode=ws;security=none;path=' . $server['path'] .
';host=' . $server['host']);
}
$array_server[] = $server;
$server_index++;
continue;
} else {
$node_server = explode(';', $node->server);
$server['server'] = $node_server[0];
}
$server['id'] = $server_index;
$server['server'] = $node->server;
//判断是否是中转起源节点
$relay_rule = Relay::where('source_node_id', $node->id)->where(
static function ($query) use ($user) {
@ -418,13 +593,13 @@ class URL
$server['ratio'] = $node->traffic_rate;
//包含普通
if ($node->mu_only == 0 || $node->mu_only == -1) {
if (($node->mu_only == 0 || $node->mu_only == -1) && $node->sort != 13) {
$server['remarks'] = $node->name;
$array_server[] = $server;
$server_index++;
}
//包含单多
if ($node->mu_only == 0 || $node->mu_only == 1) {
if (($node->mu_only == 0 || $node->mu_only == 1) && $node->sort != 13) {
$nodes_muport = Node::where('type', '1')->where('sort', '=', 9)
->where(static function ($query) use ($user) {
$query->Where('node_group', '=', $user->group)
@ -440,9 +615,15 @@ class URL
$server['id'] = $server_index;
$server['remarks'] = $node->name . ' - 单多' . $node_muport->server . '端口';
$server['port'] = $node_muport->server;
// 端口偏移
if (strpos($node->server, ';') !== false) {
$node_tmp = Tools::OutPort($node->server, $node->name, $node_muport->server);
$server['port'] = $node_tmp['port'];
$server['remarks'] = $node->name . ' - 单多' . $node_tmp['port'] . '端口';
}
$server['encryption'] = $muport_user->method;
$server['password'] = $muport_user->passwd;
$server['plugin'] = 'simple-obfs';//目前只支持这个
$server['plugin'] = 'simple-obfs'; //目前只支持这个
$plugin_options = '';
if (strpos($muport_user->obfs, 'http') != false) {
$plugin_options = 'obfs=http';
@ -486,14 +667,14 @@ class URL
$plugin = '';
if (in_array($item['obfs'], $ss_obfs_list)) {
if (strpos($item['obfs'], 'http') !== false) {
$plugin .= ',obfs=http';
$plugin .= ', obfs=http';
} else {
$plugin .= ',obfs=tls';
$plugin .= ', obfs=tls';
}
if ($item['obfs_param'] != '') {
$plugin .= ',obfs-host=' . $item['obfs_param'];
$plugin .= ', obfs-host=' . $item['obfs_param'];
} else {
$plugin .= ',obfs-host=wns.windows.com';
$plugin .= ', obfs-host=wns.windows.com';
}
}
return $plugin;
@ -511,7 +692,7 @@ class URL
* obfs
* obfs_param
*/
public static function getItem($user, $node, $mu_port = 0, $relay_rule_id = 0, $is_ss = 0)
public static function getItem($user, $node, $mu_port = 0, $relay_rule_id = 0, $is_ss = 0, $emoji = 0)
{
$relay_rule = Relay::where('id', $relay_rule_id)->where(
static function ($query) use ($user) {
@ -531,9 +712,7 @@ class URL
$mu_user->obfs_param = $user->getMuMd5();
$mu_user->protocol_param = $user->id . ':' . $user->passwd;
$user = $mu_user;
if (Config::get('mergeSub') != 'true') {
$node_name .= ' - ' . $mu_port . ' 单端口';
}
$node_name .= ' - ' . $mu_port . ' 单端口';
}
if ($is_ss) {
if (!self::SSCanConnect($user)) {
@ -546,34 +725,31 @@ class URL
}
$user = self::getSSRConnectInfo($user);
}
if ($node->sort == 13) {
$server = Tools::ssv2Array($node->server);
$return_array['address'] = $server['add'];
$return_array['port'] = $server['port'];
$return_array['protocol'] = 'origin';
$return_array['protocol_param'] = '';
$return_array['path'] = $server['path'];
$return_array['obfs'] = 'v2ray';
if ($server['tls'] == 'tls' && $server['net'] == 'ws') {
$return_array['obfs_param'] = 'mode=ws;security=tls;path=' . $server['path'] . ';host=' . $user->getMuMd5();
} else {
$return_array['obfs_param'] = 'mode=ws;security=none;path=' . $server['path'] . ';host=' . $user->getMuMd5();
$return_array['address'] = $node->server;
$return_array['port'] = $user->port;
$return_array['protocol'] = $user->protocol;
$return_array['protocol_param'] = $user->protocol_param;
$return_array['obfs'] = $user->obfs;
$return_array['obfs_param'] = $user->obfs_param;
if (strpos($node->server, ';') !== false) {
$node_tmp = Tools::OutPort($node->server, $node->name, $mu_port);
if ($mu_port != 0) {
$return_array['port'] = $node_tmp['port'];
$node_name = $node_tmp['name'];
}
} else {
$return_array['address'] = $node->server;
$return_array['port'] = $user->port;
$return_array['protocol'] = $user->protocol;
$return_array['protocol_param'] = $user->protocol_param;
$return_array['obfs'] = $user->obfs;
$return_array['obfs_param'] = $user->obfs_param;
$return_array['address'] = $node_tmp['address'];
}
$return_array['passwd'] = $user->passwd;
$return_array['method'] = $user->method;
$return_array['remark'] = $node_name;
$return_array['remark'] = ($emoji == 1
? Tools::addEmoji($node_name)
: $node_name);
$return_array['class'] = $node->node_class;
$return_array['group'] = Config::get('appName');
if ($mu_port != 0 && Config::get('mergeSub') != 'true') {
$return_array['group'] .= ' - 单端口';
}
$return_array['ratio'] = ($relay_rule != null
? $node->traffic_rate + $relay_rule->dist_node()->traffic_rate
: $node->traffic_rate);
return $return_array;
}
@ -582,36 +758,49 @@ class URL
return clone $user;
}
public static function getUserTraffic($user, $is_mu = 0)
public static function getUserInfo($user, $type, $traffic_class_expire)
{
$group_name = Config::get('appName');
if ($is_mu == 1 && Config::get('mergeSub') != 'true') {
$group_name .= ' - 单端口';
}
if (strtotime($user->expire_in) > time()) {
if ($user->transfer_enable == 0) {
$percent = '0.00%';
$return = '';
// 订阅信息
$info_array = (count(Config::get('sub_message')) != 0
? (array) Config::get('sub_message')
: []);
if ($traffic_class_expire !== 0) {
// 用户账户及流量信息
if (strtotime($user->expire_in) > time()) {
if ($user->transfer_enable == 0) {
$info_array[] = '剩余流量:0.00%';
} else {
$info_array[] = '剩余流量:' . number_format(($user->transfer_enable - $user->u - $user->d) / $user->transfer_enable * 100, 2) . '% ' . $user->unusedTraffic();
}
$info_array[] = '过期时间:' . $user->class_expire;
} else {
$percent = number_format(($user->transfer_enable - $user->u - $user->d) / $user->transfer_enable * 100, 2) . '%';
$info_array[] = '账户已过期,请续费后使用';
}
$ssurl = 'www.google.com:1:auth_chain_a:chacha20:tls1.2_ticket_auth:YnJlYWt3YWxs/?obfsparam=&protoparam=&remarks=' . Tools::base64_url_encode('剩余流量:' . $percent . ' ' . $user->unusedTraffic()) . '&group=' . Tools::base64_url_encode($group_name);
} else {
$ssurl = 'www.google.com:1:auth_chain_a:chacha20:tls1.2_ticket_auth:YnJlYWt3YWxs/?obfsparam=&protoparam=&remarks=' . Tools::base64_url_encode('账户已过期,请续费后使用') . '&group=' . Tools::base64_url_encode($group_name);
}
return 'ssr://' . Tools::base64_url_encode($ssurl);
}
public static function getUserClassExpiration($user, $is_mu = 0)
{
$group_name = Config::get('appName');
if ($is_mu == 1 && Config::get('mergeSub') != 'true') {
$group_name .= ' - 单端口';
}
if (strtotime($user->expire_in) > time()) {
$ssurl = 'www.google.com:2:auth_chain_a:chacha20:tls1.2_ticket_auth:YnJlYWt3YWxs/?obfsparam=&protoparam=&remarks=' . Tools::base64_url_encode('过期时间:' . $user->class_expire) . '&group=' . Tools::base64_url_encode($group_name);
} else {
$ssurl = 'www.google.com:2:auth_chain_a:chacha20:tls1.2_ticket_auth:YnJlYWt3YWxs/?obfsparam=&protoparam=&remarks=' . Tools::base64_url_encode('账户已过期,请续费后使用') . '&group=' . Tools::base64_url_encode($group_name);
foreach ($info_array as $item) {
switch ($type) {
case 'ss':
$return .= 'ss://' . Tools::base64_url_encode('chacha20:breakwall') . '@www.google.com:10086' . '/?group=' . Tools::base64_url_encode($group_name) . '#' . rawurlencode($item) . PHP_EOL;
break;
case 'ssr':
$return .= 'ssr://' . Tools::base64_url_encode('www.google.com:10086:auth_chain_a:chacha20:tls1.2_ticket_auth:YnJlYWt3YWxs/?obfsparam=&protoparam=&remarks=' . Tools::base64_url_encode($item) . '&group=' . Tools::base64_url_encode($group_name)) . PHP_EOL;
break;
case 'v2ray':
$v2ray = ['v' => '2', 'ps' => $item, 'add' => 'www.google.com', 'port' => '10086', 'id' => '2661b5f8-8062-34a5-9371-a44313a75b6b', 'aid' => '2', 'net' => 'tcp', 'type' => 'none', 'host' => '', 'tls' => ''];
$return .= 'vmess://' . base64_encode(json_encode($v2ray, JSON_UNESCAPED_UNICODE)) . PHP_EOL;
break;
case 'quantumult_v2':
$quantumult_v2 = base64_encode($item . ' = vmess, ' . 'www.google.com' . ', ' . '10086' . ', chacha20-ietf-poly1305, "2661b5f8-8062-34a5-9371-a44313a75b6b", group=' . $group_name . '_v2') . PHP_EOL;
$return .= 'vmess://' . base64_encode($quantumult_v2) . PHP_EOL;
break;
}
}
return 'ssr://' . Tools::base64_url_encode($ssurl);
return $return;
}
}

@ -26,7 +26,9 @@
"league/omnipay": "^3",
"lokielse/omnipay-alipay": "*",
"charlottedunois/yasmin": "*",
"khanamiryan/qrcode-detector-decoder": "*"
"khanamiryan/qrcode-detector-decoder": "*",
"remotelyliving/php-dns": "3.0.6",
"symfony/yaml": "^4.4@dev"
},
"autoload": {
"psr-4": {

@ -5,319 +5,466 @@
//config迁移附注(由开发者填写本次config迁移后需要注意的地方,站长勿动)
//如需换行,直接换行即可,无需换行符
//【新增/删除】config无需写入迁移附注
$System_Config['config_migrate_notice']=
$_ENV['config_migrate_notice']=
'enable_geetest_* 已变更为 enable_*_captcha
crisp已被替换为mylivechat
telegrma_qrcode被重命名为qrcode
';
$System_Config['version']='1'; //仅当涉及【需要修改config以外的文件】时才需要+1,站长勿动
$_ENV['version']='1'; //仅当涉及【需要修改config以外的文件】时才需要+1,站长勿动
//基本设置--------------------------------------------------------------------------------------------
$System_Config['key'] = '1145141919810'; //!!! 瞎 jb 修改此key为随机字符串确保网站安全 !!!
$System_Config['debug'] = false; //正式环境请确保为 false
$System_Config['appName'] = 'sspanel'; //站点名称
$System_Config['baseUrl'] = 'http://url.com'; //站点地址
$System_Config['subUrl'] = $System_Config['baseUrl'].'/link/'; //订阅地址,如需和站点名称相同,请不要修改
$System_Config['muKey'] = 'NimaQu'; //用于校验魔改后端请求,可以随意修改,但请保持前后端一致,否则节点不能工作!
$System_Config['db_driver'] = 'mysql'; //数据库程序
$System_Config['db_host'] = 'localhost'; //数据库地址
$System_Config['db_database'] = 'sspanel'; //数据库名
$System_Config['db_username'] = 'root'; //数据库用户名
$System_Config['db_password'] = 'sspanel'; //用户名对应的密码
$_ENV['key'] = '1145141919810'; //!!! 瞎 jb 修改此key为随机字符串确保网站安全 !!!
$_ENV['debug'] = false; //正式环境请确保为 false
$_ENV['appName'] = 'sspanel'; //站点名称
$_ENV['baseUrl'] = 'http://url.com'; //站点地址
$_ENV['subUrl'] = $_ENV['baseUrl'].'/link/'; //订阅地址,如需和站点名称相同,请不要修改
$_ENV['muKey'] = 'NimaQu'; //用于校验魔改后端请求,可以随意修改,但请保持前后端一致,否则节点不能工作!
$_ENV['db_driver'] = 'mysql'; //数据库程序
$_ENV['db_host'] = 'localhost'; //数据库地址
$_ENV['db_database'] = 'sspanel'; //数据库名
$_ENV['db_username'] = 'root'; //数据库用户名
$_ENV['db_password'] = 'sspanel'; //用户名对应的密码
// 新旧首页设置--------------------------------------------------------------------------------------------
$_ENV['newIndex'] = 'true'; //使用新的 Node.js 开发的首页请填写 true,其他值为使用先前的首页,如您使用其他主题请保持 true
// 订阅中的公告信息
// 使用数组形式,将会添加在订阅列表的顶端
// 可用于为用户推送最新地址等信息,尽可能简短且数量不宜太多
$_ENV['sub_message'] = [];
//邮件设置--------------------------------------------------------------------------------------------
$System_Config['mailDriver'] = 'none'; //发送邮件方式:none / mailgun / smtp / sendgrid
$System_Config['sendPageLimit']= 50; //发信分页 解决大站发公告超时问题
$_ENV['mailDriver'] = 'none'; //发送邮件方式:none / mailgun / smtp / sendgrid
$_ENV['sendPageLimit']= 50; //发信分页 解决大站发公告超时问题
# mailgun
$System_Config['mailgun_key'] = '';
$System_Config['mailgun_domain'] = '';
$System_Config['mailgun_sender'] = '';
$_ENV['mailgun_key'] = '';
$_ENV['mailgun_domain'] = '';
$_ENV['mailgun_sender'] = '';
# smtp
$System_Config['smtp_host'] = '';
$System_Config['smtp_username'] = '';
$System_Config['smtp_port'] = '465';
$System_Config['smtp_name'] = '';
$System_Config['smtp_sender'] = '';
$System_Config['smtp_passsword'] = '';
$System_Config['smtp_ssl'] = 'true';
$_ENV['smtp_host'] = '';
$_ENV['smtp_username'] = '';
$_ENV['smtp_port'] = '465';
$_ENV['smtp_name'] = '';
$_ENV['smtp_sender'] = '';
$_ENV['smtp_passsword'] = '';
$_ENV['smtp_ssl'] = 'true';
# sendgrid
$System_Config['sendgrid_key'] = '';
$System_Config['sendgrid_sender'] = '';
$_ENV['sendgrid_key'] = '';
$_ENV['sendgrid_sender'] = '';
//备份设置--------------------------------------------------------------------------------------------
$System_Config['auto_backup_email']=''; //接收备份的邮箱
$System_Config['auto_backup_passwd']=''; //备份的压缩密码
$System_Config['backup_notify']='true'; //备份通知到TG群中
$_ENV['auto_backup_email']=''; //接收备份的邮箱
$_ENV['auto_backup_passwd']=''; //备份的压缩密码
$_ENV['backup_notify']='true'; //备份通知到TG群中
//用户注册设置-----------------------------------------------------------------------------------------
$System_Config['register_mode'] = 'open'; //注册模式。close:关闭,open:开放,invite:仅限邀请码
$System_Config['defaultTraffic'] = '1'; //用户初始流量 单位GB
$System_Config['user_expire_in_default']='3650'; //用户账户过期时间,在注册时设置。(天)
$System_Config['user_class_default']='0'; //用户注册等级,在注册时设置。
$System_Config['user_class_expire_default']='24'; //用户等级过期时间,在注册时设置。(小时)
$System_Config['user_conn']='0'; //用户注册客户端数量限制,0为不限制
$System_Config['user_speedlimit']='0'; //用户注册速度默认限制,0为不限制
$System_Config['reg_auto_reset_day']='0'; //注册时的流量重置日,0为不重置
$System_Config['reg_auto_reset_bandwidth']='0'; //需要重置的流量,0为不重置
$System_Config['ramdom_group']='0'; //注册时随机分组,注册时随机分配到的分组,多个分组请用英文半角逗号分隔。
$System_Config['reg_method']='rc4-md5'; //注册时默认加密方式
$System_Config['reg_protocol']='origin'; //注册时默认协议
$System_Config['reg_protocol_param']=''; //注册时默认协议参数
$System_Config['reg_obfs']='plain'; //注册时默认混淆方式
$System_Config['reg_obfs_param']=''; //注册时默认混淆参数
$System_Config['reg_forbidden_ip']='127.0.0.0/8,::1/128'; //注册时默认禁止访问IP列表,半角英文逗号分割
$System_Config['min_port']='10000'; //用户端口池最小值
$System_Config['max_port']='65535'; //用户端口池最大值
$System_Config['reg_forbidden_port']=''; //注册时默认禁止访问端口列表,半角英文逗号分割,支持端口段
$System_Config['mu_suffix']='microsoft.com'; //单端口多用户混淆参数后缀,可以随意修改,但请保持前后端一致
$System_Config['mu_regex']='%5m%id.%suffix'; //单端口多用户混淆参数表达式,%5m代表取用户特征 md5 的前五位,%id 代表用户id,%suffix 代表上面这个后缀。
$_ENV['register_mode'] = 'open'; //注册模式。close:关闭,open:开放,invite:仅限邀请码
$_ENV['defaultTraffic'] = '1'; //用户初始流量 单位GB
$_ENV['user_expire_in_default']='3650'; //用户账户过期时间,在注册时设置。(天)
$_ENV['user_class_default']='0'; //用户注册等级,在注册时设置。
$_ENV['user_class_expire_default']='24'; //用户等级过期时间,在注册时设置。(小时)
$_ENV['user_conn']='0'; //用户注册客户端数量限制,0为不限制
$_ENV['user_speedlimit']='0'; //用户注册速度默认限制,0为不限制
$_ENV['reg_auto_reset_day']='0'; //注册时的流量重置日,0为不重置
$_ENV['reg_auto_reset_bandwidth']='0'; //需要重置的流量,0为不重置
$_ENV['ramdom_group']='0'; //注册时随机分组,注册时随机分配到的分组,多个分组请用英文半角逗号分隔。
$_ENV['reg_method']='chacha20-ietf'; //注册时默认加密方式
$_ENV['reg_protocol']='auth_aes128_sha1'; //注册时默认协议
$_ENV['reg_protocol_param']=''; //注册时默认协议参数
$_ENV['reg_obfs']='http_simple'; //注册时默认混淆方式
$_ENV['reg_obfs_param']='www.jd.hk'; //注册时默认混淆参数
$_ENV['reg_forbidden_ip']='127.0.0.0/8,::1/128'; //注册时默认禁止访问IP列表,半角英文逗号分割
$_ENV['min_port']='10000'; //用户端口池最小值
$_ENV['max_port']='65535'; //用户端口池最大值
$_ENV['reg_forbidden_port']=''; //注册时默认禁止访问端口列表,半角英文逗号分割,支持端口段
$_ENV['mu_suffix']='microsoft.com'; //单端口多用户混淆参数后缀,可以随意修改,但请保持前后端一致
$_ENV['mu_regex']='%5m%id.%suffix'; //单端口多用户混淆参数表达式,%5m代表取用户特征 md5 的前五位,%id 代表用户id,%suffix 代表上面这个后缀。
#邀请链接
$System_Config['inviteNum'] = '10'; //注册后的邀请链接可用次数
$System_Config['invite_get_money']='1'; //新用户通过私人邀请链接注册时,获得奖励金额(作为初始资金)
$System_Config['invite_price']='-1'; //用户购买邀请码所需要的价格,价格小于0时视为不开放购买
$System_Config['custom_invite_price']='-1'; //用户定制邀请码所需要的价格,价格小于0时视为不开放购买
$_ENV['inviteNum'] = '10'; //注册后的邀请链接可用次数
$_ENV['invite_get_money']='1'; //新用户通过私人邀请链接注册时,获得奖励金额(作为初始资金)
$_ENV['invite_price']='-1'; //用户购买邀请码所需要的价格,价格小于0时视为不开放购买
$_ENV['custom_invite_price']='-1'; //用户定制邀请码所需要的价格,价格小于0时视为不开放购买
#邮箱验证
$System_Config['enable_email_verify']='false'; //是否启用注册邮箱验证码
$System_Config['email_verify_ttl']='3600'; //邮箱验证码有效期
$System_Config['email_verify_iplimit']='10'; //验证码有效期内,单IP可请求验证码次数
$_ENV['enable_email_verify']='false'; //是否启用注册邮箱验证码
$_ENV['email_verify_ttl']='3600'; //邮箱验证码有效期
$_ENV['email_verify_iplimit']='10'; //验证码有效期内,单IP可请求验证码次数
//已注册用户设置---------------------------------------------------------------------------------------
#基础
$System_Config['checkinMin'] = '1'; //用户签到最少流量 单位MB
$System_Config['checkinMax'] = '50'; //用户签到最多流量
$System_Config['auto_clean_uncheck_days']='-1'; //自动清理多少天没签到的0级用户,小于等于0时关闭
$System_Config['auto_clean_unused_days']='-1'; //自动清理多少天没使用的0级用户,小于等于0时关闭
$System_Config['auto_clean_min_money']='1'; //余额低于多少的0级用户可以被清理
$System_Config['code_payback']='20'; //充值返利百分比
$System_Config['invite_gift']='2'; //邀请新用户获得流量奖励,单位G
$System_Config['enable_bought_reset']='true'; //购买时是否重置流量
$System_Config['enable_bought_extend']='true'; //购买时是否延长等级期限(同等级配套)
$System_Config['port_price']='-1'; //用户随机重置端口所需要的价格,价格小于0时视为不开放购买
$System_Config['port_price_specify']='-1'; //用户指明钦定端口所需要的价格,价格小于0时视为不开放购买
$_ENV['checkinMin'] = '1'; //用户签到最少流量 单位MB
$_ENV['checkinMax'] = '50'; //用户签到最多流量
$_ENV['auto_clean_uncheck_days']='-1'; //自动清理多少天没签到的0级用户,小于等于0时关闭
$_ENV['auto_clean_unused_days']='-1'; //自动清理多少天没使用的0级用户,小于等于0时关闭
$_ENV['auto_clean_min_money']='1'; //余额低于多少的0级用户可以被清理
$_ENV['code_payback']='20'; //充值返利百分比
$_ENV['invite_gift']='2'; //邀请新用户获得流量奖励,单位G
$_ENV['enable_bought_reset']='true'; //购买时是否重置流量
$_ENV['enable_bought_extend']='true'; //购买时是否延长等级期限(同等级配套)
$_ENV['port_price']='-1'; //用户随机重置端口所需要的价格,价格小于0时视为不开放购买
$_ENV['port_price_specify']='-1'; //用户指明钦定端口所需要的价格,价格小于0时视为不开放购买
#高级
$System_Config['class_expire_reset_traffic']='0'; //等级到期时重置为的流量值,单位GB,小于0时不重置
$System_Config['account_expire_delete_days']='-1'; //账户到期几天之后会删除账户,小于0时不删除
$System_Config['enable_kill']='true'; //是否允许用户注销账户
$System_Config['notify_limit_mode'] = 'false'; //false为关闭,per为按照百分比提醒,mb为按照固定剩余流量提醒
$System_Config['notify_limit_value'] = '20'; //当上一项为per时,此处填写百分比;当上一项为mb时,此处填写流量
$System_Config['mergeSub'] = 'false'; //合并订阅设置 可选项 false / true
$_ENV['class_expire_reset_traffic']='0'; //等级到期时重置为的流量值,单位GB,小于0时不重置
$_ENV['account_expire_delete_days']='-1'; //账户到期几天之后会删除账户,小于0时不删除
$_ENV['enable_kill']='true'; //是否允许用户注销账户
$_ENV['notify_limit_mode'] = 'false'; //false为关闭,per为按照百分比提醒,mb为按照固定剩余流量提醒
$_ENV['notify_limit_value'] = '20'; //当上一项为per时,此处填写百分比;当上一项为mb时,此处填写流量
$_ENV['mergeSub'] = 'false'; //合并订阅设置 可选项 false / true,此项在 Rico && GeekQu 仓库已废弃
$_ENV['protocol_specify'] = 'true'; //允许用户自行切换加密、协议、混淆,允许请填写 true,禁止用户自行修改将使用下方配置的方案
$_ENV['keep_connect'] = 'false'; //是否开启用户流量耗尽后降低速率至 1Mbps 而不断网
#加密、协议、混淆切换方案
$_ENV['user_agreement_scheme'] = [
['id'=>1,'name'=>'SS 推荐配置','method'=>'chacha20-ietf-poly1305','protocol'=>'origin','obfs'=>'plain'],
['id'=>2,'name'=>'SSR 推荐配置','method'=>'chacha20-ietf','protocol'=>'auth_aes128_sha1','obfs'=>'http_simple_compatible'],
['id'=>3,'name'=>'SS/SSR 兼容配置','method'=>'chacha20-ietf','protocol'=>'auth_aes128_sha1_compatible','obfs'=>'plain']
];
$_ENV['subscribeLog'] = 'false'; //是否记录用户订阅日志
$_ENV['subscribeLog_keep_days'] = '7'; //订阅记录保留天数
//Bot 设置--------------------------------------------------------------------------------------------
#通用
$System_Config['qrcode']='zxing_local'; //二维码解码方式,online,phpzbar,zxing_online,zxing_local
$System_Config['finance_public']='false'; //财务报告是否向群公开
$System_Config['enable_welcome_message']='true'; //机器人发送欢迎消息
$_ENV['qrcode']='zxing_local'; //二维码解码方式,online,phpzbar,zxing_online,zxing_local
$_ENV['finance_public']='false'; //财务报告是否向群公开
$_ENV['enable_welcome_message']='true'; //机器人发送欢迎消息
#Discord
$System_Config['enable_discord']='false'; //是否开启Discord bot(仍未完成)
$System_Config['discord_token']=''; //Discord bot,bot 的 token,在 https://discordapp.com/developers/applications/ 申请
$_ENV['enable_discord']='false'; //是否开启Discord bot(仍未完成)
$_ENV['discord_token']=''; //Discord bot,bot 的 token,在 https://discordapp.com/developers/applications/ 申请
#Telegram
$System_Config['enable_telegram']='false'; //是否开启Telegram bot
$System_Config['telegram_token']=''; //Telegram bot,bot 的 token ,跟 father bot 申请
$System_Config['telegram_chatid']=''; //Telegram bot,群组会话 ID,把机器人拉进群里之后跟他 /ping 一下即可得到。
$System_Config['enable_tuling']='false'; //是否开启图灵机器人
$System_Config['tuling_apikey']=''; //图灵机器人API Key
$System_Config['tuling_apisecert']=''; //图灵机器人密钥
$System_Config['telegram_bot']='_bot'; //Telegram 机器人账号
$System_Config['telegram_group_quiet']='false'; //Telegram 机器人在群组中不回应
$System_Config['telegram_request_token']=''; //Telegram 机器人请求Key,随意设置,由大小写英文和数字组成,更新这个参数之后请 php xcat setTelegram
$_ENV['enable_telegram']='false'; //是否开启Telegram bot
$_ENV['telegram_token']=''; //Telegram bot,bot 的 token ,跟 father bot 申请
$_ENV['telegram_chatid']=''; //Telegram bot,群组会话 ID,把机器人拉进群里之后跟他 /ping 一下即可得到。
$_ENV['enable_tuling']='false'; //是否开启图灵机器人
$_ENV['tuling_apikey']=''; //图灵机器人API Key
$_ENV['tuling_apisecert']=''; //图灵机器人密钥
$_ENV['telegram_bot']='_bot'; //Telegram 机器人账号
$_ENV['telegram_group_quiet']='false'; //Telegram 机器人在群组中不回应
$_ENV['telegram_request_token']=''; //Telegram 机器人请求Key,随意设置,由大小写英文和数字组成,更新这个参数之后请 php xcat setTelegram
//沟通设置--------------------------------------------------------------------------------------------
#客服系统设置,注册地址 https://www.mylivechat.com
$System_Config['enable_mylivechat']='false'; //是否开启客服系统
$System_Config['mylivechat_id']='null'; //客服系统ID
$_ENV['enable_mylivechat']='false'; //是否开启客服系统
$_ENV['mylivechat_id']='null'; //客服系统ID
# PushBear 基于微信模板的向关注了二维码的用户以微信方式推送消息 https://pushbear.ftqq.com/
$System_Config['usePushBear'] = 'false'; // true 启用 false 禁用
$System_Config['PushBear_sendkey'] = ''; //请填写您在PushBear获取的sendkey 请仔细检查勿粘贴错
$_ENV['usePushBear'] = 'false'; // true 启用 false 禁用
$_ENV['PushBear_sendkey'] = ''; //请填写您在PushBear获取的sendkey 请仔细检查勿粘贴错
#工单系统设置
$System_Config['enable_ticket']='true'; //是否开启工单系统
$System_Config['mail_ticket']='true'; //是否开启工单邮件提醒
$_ENV['enable_ticket']='true'; //是否开启工单系统
$_ENV['mail_ticket']='true'; //是否开启工单邮件提醒
# Server酱 用户提交新工单或者回复工单时用微信提醒机场主 http://sc.ftqq.com/
$System_Config['useScFtqq'] = 'false'; //是否开启工单Server酱提醒
$System_Config['ScFtqq_SCKEY'] = ''; //请填写您在Server酱获取的SCKEY 请仔细检查勿粘贴错
$_ENV['useScFtqq'] = 'false'; //是否开启工单Server酱提醒
$_ENV['ScFtqq_SCKEY'] = ''; //请填写您在Server酱获取的SCKEY 请仔细检查勿粘贴错
#管理员联系方式设置
$System_Config['enable_admin_contact']='false'; //是否开启管理员联系方式
$System_Config['admin_contact1'] = 'QQ:1233456'; //QQ、邮箱、微信仅用于举例
$System_Config['admin_contact2'] = '邮箱123456@qq.com'; //也可以写电话、tg等其他联系方式
$System_Config['admin_contact3'] = '微信~123456'; //没有格式要求,想怎么写就怎么写,可留空
$_ENV['enable_admin_contact']='false'; //是否开启管理员联系方式
$_ENV['admin_contact1'] = 'QQ:1233456'; //QQ、邮箱、微信仅用于举例
$_ENV['admin_contact2'] = '邮箱123456@qq.com'; //也可以写电话、tg等其他联系方式
$_ENV['admin_contact3'] = '微信~123456'; //没有格式要求,想怎么写就怎么写,可留空
//验证码设置------------------------------------------------------------------------------------------
$System_Config['captcha_provider'] = 'recaptcha'; //取值 recaptcha | geetest(极验)
$_ENV['captcha_provider'] = 'recaptcha'; //取值 recaptcha | geetest(极验)
$System_Config['recaptcha_sitekey'] = '';
$System_Config['recaptcha_secret'] = '';
$_ENV['recaptcha_sitekey'] = '';
$_ENV['recaptcha_secret'] = '';
$System_Config['geetest_id'] = '';
$System_Config['geetest_key'] = '';
$_ENV['geetest_id'] = '';
$_ENV['geetest_key'] = '';
$System_Config['enable_reg_captcha'] = 'false'; //启用注册验证码
$System_Config['enable_login_captcha'] = 'false'; //启用登录验证码
$System_Config['enable_checkin_captcha'] = 'false'; //启用签到验证码
$_ENV['enable_reg_captcha'] = 'false'; //启用注册验证码
$_ENV['enable_login_captcha'] = 'false'; //启用登录验证码
$_ENV['enable_checkin_captcha'] = 'false'; //启用签到验证码
//支付系统设置----------------------------------------------------------------------------------------
#取值 none | codepay | trimepay | f2fpay | chenAlipay | paymentwall | spay |tomatopay | payjs
$System_Config['payment_system']='none';
$_ENV['payment_system']='none';
#codepay码支付
#wiki地址:https://goo.gl/dRwRDi http://t.cn/RnsWjtB
$System_Config['codepay_id']=''; //码支付ID
$System_Config['codepay_key']=''; //码支付通信密钥
$_ENV['codepay_id']=''; //码支付ID
$_ENV['codepay_key']=''; //码支付通信密钥
#alipay,f2fpay
$System_Config['f2fpay_app_id']='';
$System_Config['f2fpay_p_id']='';
$System_Config['alipay_public_key']='';
$System_Config['merchant_private_key']='';
$System_Config['f2fNotifyUrl']=null; //自定义当面付回调地址
$_ENV['f2fpay_app_id']='';
$_ENV['f2fpay_p_id']='';
$_ENV['alipay_public_key']='';
$_ENV['merchant_private_key']='';
$_ENV['f2fNotifyUrl']=null; //自定义当面付回调地址
#PaymentWall
$System_Config['pmw_publickey']='';
$System_Config['pmw_privatekey']='';
$System_Config['pmw_widget']='m2_1';
$System_Config['pmw_height']='350px';
$_ENV['pmw_publickey']='';
$_ENV['pmw_privatekey']='';
$_ENV['pmw_widget']='m2_1';
$_ENV['pmw_height']='350px';
#alipay,spay
$System_Config['alipay_id']='';
$System_Config['alipay_key']='';
$System_Config['amount']=[2,23,233,2333,23333]; //充值金额选项设定
$_ENV['alipay_id']='';
$_ENV['alipay_key']='';
$_ENV['amount']=[2,23,233,2333,23333]; //充值金额选项设定
#alipay,zfbjk.com
$System_Config['zfbjk_pid']='';
$System_Config['zfbjk_key']='';
$System_Config['zfbjk_qrcodeurl']='';
$_ENV['zfbjk_pid']='';
$_ENV['zfbjk_key']='';
$_ENV['zfbjk_qrcodeurl']='';
#Trimepay https://portal.trimepay.com/#/auth/register/134
$System_Config['trimepay_appid']=''; //AppID
$System_Config['trimepay_secret']=''; //AppSecret
$_ENV['trimepay_appid']=''; //AppID
$_ENV['trimepay_secret']=''; //AppSecret
# BitPay 数字货币支付(比特币、以太坊、EOS等) 商户后台获取授权码 https://merchants.mugglepay.com/
# 客服和技术 24x7 在线支持: https://t.me/joinchat/GLKSKhUnE4GvEAPgqtChAQ
$System_Config['bitpay_secret']='';
$_ENV['bitpay_secret']='';
#PayJs
$System_Config['payjs_mchid']='';
$System_Config['payjs_key']='';
$_ENV['payjs_mchid']='';
$_ENV['payjs_key']='';
//其他面板显示设置------------------------------------------------------------------------------------------
#用户文档
$_ENV['enable_documents'] = 'true'; //是否允许未登陆用户查看文档中心
$_ENV['documents_name'] = $_ENV['appName'] . ' 文档中心'; //文档中心名称
$_ENV['remote_documents'] = 'true'; //是否从远程加载文档中心,否的话请执行 php xcat initdocuments
$_ENV['documents_source'] = 'https://raw.githubusercontent.com/GeekQu/PANEL_DOC/master/GeekQu'; //远程文档加载地址
#后台商品列表 销量统计
$System_Config['sales_period']='30'; //统计指定周期内的销量,值为【expire/任意大于0的整数】
$_ENV['sales_period']='30'; //统计指定周期内的销量,值为【expire/任意大于0的整数】
#国旗
$System_Config['enable_flag']='false'; //启用该项之前务必先仔细阅读教程
$System_Config['flag_regex']='/.*?(?=\s)/'; //从站点全名中匹配【国家/地区】的正则表达式(php版)
$_ENV['enable_flag']='false'; //启用该项之前务必先仔细阅读教程
$_ENV['flag_regex']='/.*?(?=\s)/'; //从站点全名中匹配【国家/地区】的正则表达式(php版)
#捐赠
$System_Config['enable_donate']='false'; //是否显示用户捐赠(所有收入将被公开)
$_ENV['enable_donate']='false'; //是否显示用户捐赠(所有收入将被公开)
#iOS账户显示
$System_Config['display_ios_class']='-1'; //至少等级为多少的用户可以看见,小于0时关闭此功能
$System_Config['display_ios_topup']='0'; //满足等级要求后,累计充值高于多少的用户可以看见
$System_Config['ios_account']=''; //iOS账户
$System_Config['ios_password']=''; //iOS密码
$_ENV['display_ios_class']='-1'; //至少等级为多少的用户可以看见,小于0时关闭此功能
$_ENV['display_ios_topup']='0'; //满足等级要求后,累计充值高于多少的用户可以看见
$_ENV['ios_account']=''; //iOS账户
$_ENV['ios_password']=''; //iOS密码
//节点检测-----------------------------------------------------------------------------------------------
#GFW检测,请通过crontab进行【开启/关闭】
$System_Config['detect_gfw_interval']='3600'; //检测间隔,单位:秒,低于推荐值会爆炸
$System_Config['detect_gfw_port']='22'; //所有节点服务器都打开的TCP端口,常用的为22(SSH端口)
$System_Config['detect_gfw_url']='https://cn-qz-tcping.torch.njs.app/{ip}/{port}'; //检测节点是否被gfw墙了的API的URL
$System_Config['detect_gfw_judge']='$json_tcping[\'status\']=="true"'; //判断是否被墙的依据,json_tcping为上方URL返回的json数组
$System_Config['detect_gfw_count']='3'; //尝试次数
$_ENV['detect_gfw_interval']='3600'; //检测间隔,单位:秒,低于推荐值会爆炸
$_ENV['detect_gfw_port']='22'; //所有节点服务器都打开的TCP端口,常用的为22(SSH端口)
$_ENV['detect_gfw_url']='https://cn-qz-tcping.torch.njs.app/{ip}/{port}'; //检测节点是否被gfw墙了的API的URL
$_ENV['detect_gfw_judge']='$json_tcping[\'status\']=="true"'; //判断是否被墙的依据,json_tcping为上方URL返回的json数组
$_ENV['detect_gfw_count']='3'; //尝试次数
#离线检测
$System_Config['enable_detect_offline']='true';
$_ENV['enable_detect_offline']='true';
#离线检测是否推送到Server酱 请配置好上文的Server配置
$System_Config['enable_detect_offline_useScFtqq']='true';
$_ENV['enable_detect_offline_useScFtqq']='true';
//V2Ray相关设置------------------------------------------------------------------------------------------
$System_Config['v2ray_port']='443'; //V2Ray端口
$System_Config['v2ray_protocol']='HTTP/2 + TLS'; //V2Ray协议
$System_Config['v2ray_alter_id']='32';
$System_Config['v2ray_level']='0';
//以下所有均为高级设置(一般用不上,不用改---------------------------------------------------------------------
#杂项
$System_Config['enable_login_bind_ip']='false'; //是否将登陆线程和IP绑定
$System_Config['rememberMeDuration']='7'; //登录时记住账号时长天数
$System_Config['authDriver'] = 'cookie'; //不能更改此项
$System_Config['pwdMethod'] = 'md5'; //密码加密 可选 md5, sha256, bcrypt, argon2i, argon2id(argon2i需要至少php7.2)
$System_Config['salt'] = ''; //推荐配合 md5/sha256, bcrypt/argon2i/argon2id 会忽略此项
$System_Config['sessionDriver'] = 'cookie'; //可选: cookie,redis
$System_Config['cacheDriver'] = 'cookie'; //可选: cookie,redis
$System_Config['tokenDriver'] = 'db'; //可选: db,redis
$System_Config['jump_delay']='1200'; //跳转延时,单位ms,不建议太长
$System_Config['theme'] = 'material'; //主题
$System_Config['pacp_offset']='-20000'; //VPN 端口偏移
$System_Config['pacpp_offset']='-20000';
$System_Config['Speedtest_duration']='6'; //显示多长时间的测速记录
$System_Config['login_warn']='false'; //异地登陆提示
$System_Config['timeZone'] = 'PRC'; //PRC 天朝时间 UTC 格林时间
$System_Config['db_charset'] = 'utf8';
$System_Config['db_collation'] = 'utf8_general_ci';
$System_Config['db_prefix'] = '';
$System_Config['muKeyList'] = [' ']; //多 key 列表
$_ENV['enable_login_bind_ip']='false'; //是否将登陆线程和IP绑定
$_ENV['rememberMeDuration']='7'; //登录时记住账号时长天数
$_ENV['authDriver'] = 'cookie'; //不能更改此项
$_ENV['pwdMethod'] = 'md5'; //密码加密 可选 md5, sha256, bcrypt, argon2i, argon2id(argon2i需要至少php7.2)
$_ENV['salt'] = ''; //推荐配合 md5/sha256, bcrypt/argon2i/argon2id 会忽略此项
$_ENV['sessionDriver'] = 'cookie'; //可选: cookie,redis
$_ENV['cacheDriver'] = 'cookie'; //可选: cookie,redis
$_ENV['tokenDriver'] = 'db'; //可选: db,redis
$_ENV['jump_delay']='1200'; //跳转延时,单位ms,不建议太长
$_ENV['theme'] = 'material'; //主题
$_ENV['pacp_offset']='-20000'; //VPN 端口偏移
$_ENV['pacpp_offset']='-20000';
$_ENV['Speedtest_duration']='6'; //显示多长时间的测速记录
$_ENV['login_warn']='false'; //异地登陆提示
$_ENV['timeZone'] = 'PRC'; //PRC 天朝时间 UTC 格林时间
$_ENV['db_charset'] = 'utf8';
$_ENV['db_collation'] = 'utf8_general_ci';
$_ENV['db_prefix'] = '';
$_ENV['muKeyList'] = [' ']; //多 key 列表
$_ENV['mu_port_migration'] = 'false'; //为后端直接下发偏移后的端口
$_ENV['relay_port_migration'] = 'false'; //为中转规则下发偏移后的端口,此项未经测试
$_ENV['add_emoji_to_node_name'] = 'false'; //为部分订阅中默认添加 emoji
$_ENV['add_appName_to_ss_uri'] = 'true'; //为 SS 节点名称中添加站点名
$_ENV['subscribe_client'] = 'false'; //下载协议客户端时附带节点和订阅信息
// 审计自动封禁开关
$_ENV['enable_auto_detect_ban'] = 'false';
// 管理员不受审计限制
$_ENV['auto_detect_ban_allow_admin'] = 'true';
// 审计封禁的例外用户 ID
$_ENV['auto_detect_ban_allow_users'] = [];
// 审计封禁判断类型:
// - 1 = 仁慈模式,每触碰多少次封禁一次
// - 2 = 疯狂模式,累计触碰次数按阶梯进行不同时长的封禁
$_ENV['auto_detect_ban_type'] = '1';
// 仁慈模式每次执行封禁所需的触发次数
$_ENV['auto_detect_ban_number'] = '30';
// 仁慈模式每次封禁的时长 (分钟)
$_ENV['auto_detect_ban_time'] = '60';
// 疯狂模式阶梯
// key 为触发次数
// - type:可选 time 按时间 或 kill 删号
// - time:时间,单位分钟
$_ENV['auto_detect_ban'] = [
100 => [
'type' => 'time',
'time' => '120'
],
300 => [
'type' => 'time',
'time' => '720'
],
600 => [
'type' => 'time',
'time' => '4320'
],
1000 => [
'type' => 'kill',
'time' => '0'
]
];
#aws
$System_Config['aws_access_key_id'] = '';
$System_Config['aws_secret_access_key'] = '';
$_ENV['aws_access_key_id'] = '';
$_ENV['aws_secret_access_key'] = '';
#redis
$System_Config['redis_scheme'] = 'tcp';
$System_Config['redis_host'] = '127.0.0.1';
$System_Config['redis_port'] = '6379';
$System_Config['redis_database'] = '0';
$System_Config['redis_password']= '';
$_ENV['redis_scheme'] = 'tcp';
$_ENV['redis_host'] = '127.0.0.1';
$_ENV['redis_port'] = '6379';
$_ENV['redis_database'] = '0';
$_ENV['redis_password']= '';
#Radius设置
$System_Config['enable_radius']='false'; //是否开启Radius
$System_Config['radius_db_host']=''; //以下4项为Radius数据库设置
$System_Config['radius_db_database']='';
$System_Config['radius_db_user']='';
$System_Config['radius_db_password']='';
$System_Config['radius_secret']=''; //Radius连接密钥
$_ENV['enable_radius']='false'; //是否开启Radius
$_ENV['radius_db_host']=''; //以下4项为Radius数据库设置
$_ENV['radius_db_database']='';
$_ENV['radius_db_user']='';
$_ENV['radius_db_password']='';
$_ENV['radius_secret']=''; //Radius连接密钥
#Cloudxns
$System_Config['enable_cloudxns']='false'; //是否开启Cloudxns
$System_Config['cloudxns_apikey']=''; //自己去 cloudxns.net 申请
$System_Config['cloudxns_apisecret']='';
$System_Config['cloudxns_domain']=''; //你的域名
$_ENV['enable_cloudxns']='false'; //是否开启Cloudxns
$_ENV['cloudxns_apikey']=''; //自己去 cloudxns.net 申请
$_ENV['cloudxns_apisecret']='';
$_ENV['cloudxns_domain']=''; //你的域名
#Cloudflare
$System_Config['cloudflare_enable']='false'; //是否开启 Cloudflare 解析
$System_Config['cloudflare_email']='user@example.com'; //Cloudflare 邮箱地址
$System_Config['cloudflare_key']='c2547eb745079dac9320b638f5e225cf483cc5cfdda41'; //Cloudflare API Key
$System_Config['cloudflare_name']='example.com'; //域名
$_ENV['cloudflare_enable']='false'; //是否开启 Cloudflare 解析
$_ENV['cloudflare_email']='user@example.com'; //Cloudflare 邮箱地址
$_ENV['cloudflare_key']='c2547eb745079dac9320b638f5e225cf483cc5cfdda41'; //Cloudflare API Key
$_ENV['cloudflare_name']='example.com'; //域名
#不安全中转模式,这个开启之后使用除了 auth_aes128_md5 或者 auth_aes128_sha1 以外的协议地用户也可以设置和使用中转
$System_Config['relay_insecure_mode']='false'; //强烈推荐不开启
$_ENV['relay_insecure_mode']='false'; //强烈推荐不开启
#是否夹带统计代码,自己在 resources/views/{主题名} 下创建一个 analytics.tpl ,如果有必要就用 literal 界定符
$System_Config['enable_analytics_code']='false';
$System_Config['sspanelAnalysis'] = 'true';
$_ENV['enable_analytics_code']='false';
$_ENV['sspanelAnalysis'] = 'true';
//自定义设置---------------------------------------------------------------------
//是否向 Telegram 群组推送系统今天的运行状况
$_ENV['sendDiary_Telegram'] = 'true';
//自定义向 Telegram 群组推送系统今天的运行状况的信息
$_ENV['sendDiary_Msg'] = ('各位老爷少奶奶,我来为大家报告一下系统今天的运行状况哈~' . PHP_EOL
. '今日签到人数:%getTodayCheckinUser%' . PHP_EOL
. '今日使用总流量:%lastday_total%' . PHP_EOL
. '晚安~');
//是否向 Telegram 群组推送数据库清理通知
$_ENV['sendDailyJob_Telegram'] = 'true';
//自定义向 Telegram 群组推送数据库清理通知的信息
$_ENV['sendDailyJob_Msg'] = '姐姐姐姐,数据库被清理了,感觉身体被掏空了呢~';
//是否向 Telegram 群组推送节点掉线通知
$_ENV['sendNodeOffline_Telegram'] = 'true';
//自定义向 Telegram 群组推送节点掉线已切换通知的信息
$_ENV['sendNodeOffline_Update_Msg'] = '喵喵喵~ %node_name% 节点掉线了喵~域名解析被切换到了 %Temp_node_name% 上了喵~';
//自定义向 Telegram 群组推送节点掉线通知的信息
$_ENV['sendNodeOffline_Msg'] = '喵喵喵~ %node_name% 节点掉线了喵~';
//是否向 Telegram 群组推送节点上线通知
$_ENV['sendNodeOnline_Telegram'] = 'true';
//自定义向 Telegram 群组推送节点上线已切换通知的信息
$_ENV['sendNodeOnline_Update_Msg'] = '喵喵喵~ %node_name% 节点恢复了喵~域名解析被切换回来了喵~';
//自定义向 Telegram 群组推送节点上线通知的信息
$_ENV['sendNodeOnline_Msg'] = '喵喵喵~ %node_name% 节点恢复了喵~';
//是否向 Telegram 群组推送节点被墙通知
$_ENV['sendNodeGFW_Telegram'] = 'true';
//自定义向 Telegram 群组推送节点被墙已切换通知的信息
$_ENV['sendNodeGFW_Update_Msg'] = '喵喵喵~ %node_name% 节点被墙了喵~域名解析被切换到了 %Temp_node_name% 上了喵~';
//自定义向 Telegram 群组推送节点被墙通知的信息
$_ENV['sendNodeGFW_Msg'] = '喵喵喵~ %node_name% 节点被墙了喵~';
//是否向 Telegram 群组推送节点被墙恢复通知
$_ENV['sendNodeGFW_recover_Telegram'] = 'true';
//自定义向 Telegram 群组推送节点被墙恢复已切换通知的信息
$_ENV['sendNodeGFW_recover_Update_Msg'] = '喵喵喵~ %node_name% 节点恢复了喵~域名解析被切换回来了喵~';
//自定义向 Telegram 群组推送节点被墙恢复通知的信息
$_ENV['sendNodeGFW_recover_Msg'] = '喵喵喵~ %node_name% 节点恢复了喵~';
//是否向 Telegram 群组推送节点新增通知
$_ENV['sendAddNode_Telegram'] = 'true';
//自定义向 Telegram 群组推送节点新增通知的信息
$_ENV['sendAddNode_Msg'] = '新节点添加~ %node_name%';
//是否向 Telegram 群组推送节点修改通知
$_ENV['sendUpdateNode_Telegram'] = 'true';
//自定义向 Telegram 群组推送节点修改通知的信息
$_ENV['sendUpdateNode_Msg'] = '节点信息被修改~ %node_name%';
//是否向 Telegram 群组推送节点删除通知
$_ENV['sendDeleteNode_Telegram'] = 'true';
//自定义向 Telegram 群组推送节点删除通知的信息
$_ENV['sendDeleteNode_Msg'] = '节点被删除~ %node_name%';
#在套了CDN之后获取用户真实ip,如果您不知道这是什么,请不要乱动
if ( isset($_SERVER['HTTP_X_FORWARDED_FOR']) ) {
@ -326,10 +473,10 @@ $_SERVER['REMOTE_ADDR'] = $list[0];
}
// make replace System_Config with env
// make replace _ENV with env
function findKeyName($name) {
global $System_Config;
foreach($System_Config as $configKey => $configValue) {
global $_ENV;
foreach($_ENV as $configKey => $configValue) {
if (strtoupper($configKey) == $name) {
return $configKey;
}
@ -339,15 +486,15 @@ function findKeyName($name) {
}
foreach(getenv() as $envKey => $envValue) {
global $System_Config;
global $_ENV;
$envUpKey = strtoupper($envKey);
// Key starts with UIM_
if (substr($envUpKey, 0 , 4) == "UIM_") {
// Vaild env key, set to System_Config
// Vaild env key, set to _ENV
$configKey = substr($envUpKey, 4);
$realKey = findKeyName($configKey);
if ($realKey != NULL) {
$System_Config[$realKey] = $envValue;
$_ENV[$realKey] = $envValue;
}
}
}

@ -79,6 +79,9 @@ $app->group('/user', function () {
$this->get('/detect', App\Controllers\UserController::class . ':detect_index');
$this->get('/detect/log', App\Controllers\UserController::class . ':detect_log');
// 订阅记录
$this->get('/subscribe_log', App\Controllers\UserController::class . ':subscribe_log');
$this->get('/disable', App\Controllers\UserController::class . ':disable');
$this->get('/shop', App\Controllers\UserController::class . ':shop');
@ -138,6 +141,15 @@ $app->group('/user', function () {
$this->get('/inviteurl_reset', App\Controllers\UserController::class . ':resetInviteURL');
// Switch Type || SS/SSR
$this->post('/switchtype', App\Controllers\UserController::class . ':switchType');
// getUserAllURL
$this->get('/getUserAllURL', App\Controllers\UserController::class . ':getUserAllURL');
// getPcClient
$this->get('/getPcClient', App\Controllers\UserController::class . ':getPcClient');
//Reconstructed Payment System
$this->post('/payment/purchase', App\Services\Payment::class . ':purchase');
$this->get('/payment/return', App\Services\Payment::class . ':returnHTML');
@ -262,6 +274,14 @@ $app->group('/admin', function () {
$this->post('/login/ajax', App\Controllers\Admin\IpController::class . ':ajax_login');
$this->post('/alive/ajax', App\Controllers\Admin\IpController::class . ':ajax_alive');
// Subscribe Log Mange
$this->get('/subscribe', App\Controllers\Admin\SubscribeLogController::class . ':index');
$this->post('/subscribe/ajax', App\Controllers\Admin\SubscribeLogController::class . ':ajax_subscribe_log');
// Detect Ban Mange
$this->get('/detect/ban', App\Controllers\Admin\DetectBanLogController::class . ':index');
$this->post('/detect/ban/ajax', App\Controllers\Admin\DetectBanLogController::class . ':ajax_log');
// Code Mange
$this->get('/code', App\Controllers\Admin\CodeController::class . ':index');
$this->get('/code/create', App\Controllers\Admin\CodeController::class . ':create');
@ -288,6 +308,7 @@ $app->group('/admin', function () {
$this->get('/profile', App\Controllers\AdminController::class . ':profile');
$this->get('/invite', App\Controllers\AdminController::class . ':invite');
$this->post('/invite', App\Controllers\AdminController::class . ':addInvite');
$this->post('/chginvite', App\Controllers\AdminController::class . ':chgInvite');
$this->get('/sys', App\Controllers\AdminController::class . ':sys');
$this->get('/logout', App\Controllers\AdminController::class . ':logout');
$this->post('/payback/ajax', App\Controllers\AdminController::class . ':ajax_payback');
@ -385,5 +406,13 @@ $app->group('/admin', function () {
})->add(new Admin());
// chenPay end
//doc
$app->group('/doc', function () {
$this->get('', App\Controllers\HomeController::class . ':getDocCenter');
$this->get('/', App\Controllers\HomeController::class . ':getDocCenter');
});
$app->get('/sublink', App\Controllers\HomeController::class . ':getSubLink');
//doc end
// Run Slim Routes for App
$app->run();

@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>web页面跳转App</title>
</head>
<body>
<script>
function getQueryVariable(variable)
{
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i<vars.length;i++) {
var pair = vars[i].split("=");
if(pair[0] == variable){return pair[1];}
}
return(false);
}
window.location =getQueryVariable("url");
</script>
</body>
</html>

@ -0,0 +1 @@
请将已解压的客户端存放在对应文件夹中

@ -0,0 +1,3 @@
尊敬的用户您好:
如您在使用上遇到问题,请注意在我们的网站上查询相关的教程或联系我们。

@ -0,0 +1,3 @@
尊敬的用户您好:
如您在使用上遇到问题,请注意在我们的网站上查询相关的教程或联系我们。

@ -0,0 +1,3 @@
尊敬的用户您好:
如您在使用上遇到问题,请注意在我们的网站上查询相关的教程或联系我们。

@ -1,15 +1,17 @@
#---------------------------------------------------#
## 最后更新时间:{date("Y-m-d h:i:s")}
## 更新:{date("Y-m-d h:i:s")}
## 感谢:https://github.com/Hackl0us/SS-Rule-Snippet
## 链接:{$userapiUrl}
#---------------------------------------------------#
# HTTP 代理端口
port: 7890
port: {if array_key_exists("port",$opts)}{$opts['port']}{else}7890{/if}
# SOCKS5 代理端口
socks-port: 7891
socks-port: {if array_key_exists("socks-port",$opts)}{$opts['socks-port']}{else}7891{/if}
# Linux 和 macOS 的 redir 代理端口
redir-port: 7892
redir-port: {if array_key_exists("redir-port",$opts)}{$opts['redir-port']}{else}7892{/if}
# 允许局域网的连接
allow-lan: true
@ -19,572 +21,54 @@ mode: Rule
# 设置日志输出级别 (默认级别:silent,即不输出任何内容,以避免因日志内容过大而导致程序内存溢出)。
# 5 个级别:silent / info / warning / error / debug。级别越高日志输出量越大,越倾向于调试,若需要请自行开启。
log-level: silent
log-level: {if array_key_exists("log-level",$opts)}{$opts['log-level']}{else}silent{/if}
# Clash 的 RESTful API
external-controller: '0.0.0.0:9090'
# RESTful API 的口令
secret: ''
secret: '{if array_key_exists("secret",$opts)}{$opts['secret']}{else}{/if}'
# 您可以将静态网页资源(如 clash-dashboard)放置在一个目录中,clash 将会服务于 `RESTful API/ui`
# 参数应填写配置目录的相对路径或绝对路径。
# external-ui: folder
{if array_key_exists("dns",$opts) && $opts['dns']==1}
dns:
enable: true
ipv6: false
# listen: 0.0.0.0:53
# enhanced-mode: redir-host
nameserver:
- 1.2.4.8
- 223.5.5.5
- 114.114.114.114
fallback:
- tls://dns.rubyfish.cn:853
# Clash DNS 请求逻辑:
# (1) 当访问一个域名时, nameserver 与 fallback 列表内的所有服务器并发请求,得到域名对应的 IP 地址。
# (2) clash 将选取 nameserver 列表内,解析最快的结果。
# (3) 若解析结果中,IP 地址属于 国外,那么 Clash 将选择 fallback 列表内,解析最快的结果。
# 注意:
# (1) 如果您为了确保 DNS 解析结果无污染,请仅保留列表内以 tls:// 开头的 DNS 服务器,但是通常对于国内没有太大必要。
# (2) 如果您不在乎可能解析到污染的结果,更加追求速度。请将 nameserver 列表的服务器插入至 fallback 列表内,并移除重复项。
{/if}
Proxy:
{foreach $confs as $conf}
- {json_encode($conf,320)}
{foreach $Proxys as $Proxy}
- {json_encode($Proxy,320)}
{/foreach}
Proxy Group:
- { name: "Auto", type: fallback, proxies: {json_encode($proxies,320)}, url: "http://www.gstatic.com/generate_204", interval: 300 }
{$tmp[] = "Auto"}
{assign 'proxies' $tmp|array_merge:$proxies}
- { name: "Proxy", type: select, proxies: {json_encode($proxies,320)} }
- { name: "Domestic", type: select, proxies: ["DIRECT","Proxy"] }
{$China_media=["Domestic","Proxy"]}
- { name: "China_media", type: select, proxies: {json_encode($China_media,320)} }
- { name: "Global_media", type: select, proxies: ["Proxy"]}
- { name: "Others", type: select, proxies: ["Proxy","Domestic"]}
Rule:
- DOMAIN,gs.apple.com,Proxy
- DOMAIN-SUFFIX,mzstatic.com,Domestic
- DOMAIN-SUFFIX,akadns.net,Domestic
- DOMAIN-SUFFIX,aaplimg.com,Domestic
- DOMAIN-SUFFIX,cdn-apple.com,Domestic
- DOMAIN,itunes.apple.com, Domestic
- DOMAIN,beta.itunes.apple.com, Domestic
- DOMAIN-SUFFIX,apple.com, Domestic
- DOMAIN-SUFFIX,icloud.com,Domestic
- DOMAIN-SUFFIX,icloud-content.com,Domestic
- DOMAIN,e.crashlytics.com,REJECT
- DOMAIN-KEYWORD,bilibili,China_media
- DOMAIN-SUFFIX,acgvideo.com,China_media
- DOMAIN-SUFFIX,hdslb.com,China_media
- DOMAIN-KEYWORD,qiyi,China_media
- DOMAIN-SUFFIX,qy.net,China_media
- IP-CIDR,101.227.0.0/16,China_media
- IP-CIDR,101.224.0.0/13,China_media
- IP-CIDR,119.176.0.0/12,China_media
- DOMAIN-SUFFIX,api.mob.app.letv.com,China_media
- DOMAIN-KEYWORD,nowtv100,China_media
- DOMAIN-KEYWORD,rthklive,China_media
- DOMAIN-SUFFIX,mytvsuper.com,China_media
- DOMAIN-SUFFIX,tvb.com,China_media
- DOMAIN-SUFFIX,music.126.net,China_media
- DOMAIN-SUFFIX,music.163.com,China_media
- DOMAIN-SUFFIX,vv.video.qq.com,China_media
- IP-CIDR,106.11.0.0/16,China_media
- DOMAIN-SUFFIX,edgedatg.com,Global_media
- DOMAIN-SUFFIX,go.com,Global_media
- DOMAIN,linear-abematv.akamaized.net,Global_media
- DOMAIN-SUFFIX,abema.io,Global_media
- DOMAIN-SUFFIX,abema.tv,Global_media
- DOMAIN-SUFFIX,akamaized.net,Global_media
- DOMAIN-SUFFIX,ameba.jp,Global_media
- DOMAIN-SUFFIX,hayabusa.io,Global_media
- DOMAIN-SUFFIX,amazonaws.com,Global_media
- DOMAIN-SUFFIX,bahamut.com.tw,Global_media
- DOMAIN-SUFFIX,gamer.com.tw,Global_media
- DOMAIN-SUFFIX,hinet.net,Global_media
- DOMAIN-KEYWORD,bbcfmt,Global_media
- DOMAIN-KEYWORD,co.uk,Global_media
- DOMAIN-KEYWORD,uk-live,Global_media
- DOMAIN-SUFFIX,bbc.co,Global_media
- DOMAIN-SUFFIX,bbc.co.uk,Global_media
- DOMAIN-SUFFIX,bbc.com,Global_media
- DOMAIN-SUFFIX,bbci.co,Global_media
- DOMAIN-SUFFIX,bbci.co.uk,Global_media
- DOMAIN-SUFFIX,chocotv.com.tw,Global_media
- DOMAIN-KEYWORD,epicgames,Global_media
- DOMAIN-SUFFIX,helpshift.com,Global_media
- DOMAIN-KEYWORD,foxplus,Global_media
- DOMAIN-SUFFIX,config.fox.com,Global_media
- DOMAIN-SUFFIX,emome.net,Global_media
- DOMAIN-SUFFIX,fox.com,Global_media
- DOMAIN-SUFFIX,foxdcg.com,Global_media
- DOMAIN-SUFFIX,foxnow.com,Global_media
- DOMAIN-SUFFIX,foxplus.com,Global_media
- DOMAIN-SUFFIX,foxplay.com,Global_media
- DOMAIN-SUFFIX,ipinfo.io,Global_media
- DOMAIN-SUFFIX,mstage.io,Global_media
- DOMAIN-SUFFIX,now.com,Global_media
- DOMAIN-SUFFIX,theplatform.com,Global_media
- DOMAIN-SUFFIX,hbo.com,Global_media
- DOMAIN-SUFFIX,hbogo.com,Global_media
- DOMAIN-SUFFIX,hbogoasia.hk,Global_media
- DOMAIN-SUFFIX,happyon.jp,Global_media
- DOMAIN-SUFFIX,hulu.com,Global_media
- DOMAIN-SUFFIX,huluim.com,Global_media
- DOMAIN-SUFFIX,imkan.tv,Global_media
- DOMAIN-SUFFIX,joox.com,Global_media
- DOMAIN-SUFFIX,netflix.com,Global_media
- DOMAIN-SUFFIX,netflix.net,Global_media
- DOMAIN-SUFFIX,nflxext.com,Global_media
- DOMAIN-SUFFIX,nflximg.com,Global_media
- DOMAIN-SUFFIX,nflximg.net,Global_media
- DOMAIN-SUFFIX,nflxso.net,Global_media
- DOMAIN-SUFFIX,nflxvideo.net,Global_media
- DOMAIN-KEYWORD,spotify,Global_media
- DOMAIN-SUFFIX,scdn.co,Global_media
- DOMAIN-SUFFIX,spoti.fi,Global_media
- DOMAIN-SUFFIX,viu.tv,Global_media
- DOMAIN-KEYWORD,youtube,Global_media
- DOMAIN-SUFFIX,googlevideo.com,Global_media
- DOMAIN-SUFFIX,gvt2.com,Global_media
- DOMAIN-SUFFIX,youtu.be,Global_media
- DOMAIN-SUFFIX,cn,Domestic
- DOMAIN-SUFFIX,126.com,Domestic
- DOMAIN-SUFFIX,126.net,Domestic
- DOMAIN-SUFFIX,127.net,Domestic
- DOMAIN-SUFFIX,163.com,Domestic
- DOMAIN-SUFFIX,360buyimg.com,Domestic
- DOMAIN-SUFFIX,36kr.com,Domestic
- DOMAIN-SUFFIX,acfun.tv,Domestic
- DOMAIN-SUFFIX,air-matters.com,Domestic
- DOMAIN-SUFFIX,aixifan.com,Domestic
- DOMAIN-SUFFIX,akamaized.net,Domestic
- DOMAIN-KEYWORD,alicdn,Domestic
- DOMAIN-KEYWORD,alipay,Domestic
- DOMAIN-KEYWORD,taobao,Domestic
- DOMAIN-SUFFIX,amap.com,Domestic
- DOMAIN-SUFFIX,autonavi.com,Domestic
- DOMAIN-KEYWORD,baidu,Domestic
- DOMAIN-SUFFIX,bdimg.com,Domestic
- DOMAIN-SUFFIX,bdstatic.com,Domestic
- DOMAIN-SUFFIX,bilibili.com,Domestic
- DOMAIN-SUFFIX,caiyunapp.com,Domestic
- DOMAIN-SUFFIX,clouddn.com,Domestic
- DOMAIN-SUFFIX,cnbeta.com,Domestic
- DOMAIN-SUFFIX,cnbetacdn.com,Domestic
- DOMAIN-SUFFIX,cootekservice.com,Domestic
- DOMAIN-SUFFIX,csdn.net,Domestic
- DOMAIN-SUFFIX,ctrip.com,Domestic
- DOMAIN-SUFFIX,dgtle.com,Domestic
- DOMAIN-SUFFIX,dianping.com,Domestic
- DOMAIN-SUFFIX,douban.com,Domestic
- DOMAIN-SUFFIX,doubanio.com,Domestic
- DOMAIN-SUFFIX,duokan.com,Domestic
- DOMAIN-SUFFIX,easou.com,Domestic
- DOMAIN-SUFFIX,ele.me,Domestic
- DOMAIN-SUFFIX,feng.com,Domestic
- DOMAIN-SUFFIX,fir.im,Domestic
- DOMAIN-SUFFIX,frdic.com,Domestic
- DOMAIN-SUFFIX,g-cores.com,Domestic
- DOMAIN-SUFFIX,godic.net,Domestic
- DOMAIN-SUFFIX,gtimg.com,Domestic
- DOMAIN,cdn.hockeyapp.net,Domestic
- DOMAIN-SUFFIX,hongxiu.com,Domestic
- DOMAIN-SUFFIX,hxcdn.net,Domestic
- DOMAIN-SUFFIX,iciba.com,Domestic
- DOMAIN-SUFFIX,ifeng.com,Domestic
- DOMAIN-SUFFIX,ifengimg.com,Domestic
- DOMAIN-SUFFIX,ipip.net,Domestic
- DOMAIN-SUFFIX,iqiyi.com,Domestic
- DOMAIN-SUFFIX,jd.com,Domestic
- DOMAIN-SUFFIX,jianshu.com,Domestic
- DOMAIN-SUFFIX,knewone.com,Domestic
- DOMAIN-SUFFIX,le.com,Domestic
- DOMAIN-SUFFIX,lecloud.com,Domestic
- DOMAIN-SUFFIX,lemicp.com,Domestic
- DOMAIN-SUFFIX,luoo.net,Domestic
- DOMAIN-SUFFIX,meituan.com,Domestic
- DOMAIN-SUFFIX,meituan.net,Domestic
- DOMAIN-SUFFIX,mi.com,Domestic
- DOMAIN-SUFFIX,miaopai.com,Domestic
- DOMAIN-SUFFIX,microsoft.com,Domestic
- DOMAIN-SUFFIX,microsoftonline.com,Domestic
- DOMAIN-SUFFIX,miui.com,Domestic
- DOMAIN-SUFFIX,miwifi.com,Domestic
- DOMAIN-SUFFIX,mob.com,Domestic
- DOMAIN-SUFFIX,netease.com,Domestic
- DOMAIN-KEYWORD,officecdn,Domestic
- DOMAIN-SUFFIX,oschina.net,Domestic
- DOMAIN-SUFFIX,ppsimg.com,Domestic
- DOMAIN-SUFFIX,pstatp.com,Domestic
- DOMAIN-SUFFIX,qcloud.com,Domestic
- DOMAIN-SUFFIX,qdaily.com,Domestic
- DOMAIN-SUFFIX,qdmm.com,Domestic
- DOMAIN-SUFFIX,qhimg.com,Domestic
- DOMAIN-SUFFIX,qidian.com,Domestic
- DOMAIN-SUFFIX,qihucdn.com,Domestic
- DOMAIN-SUFFIX,qiniu.com,Domestic
- DOMAIN-SUFFIX,qiniucdn.com,Domestic
- DOMAIN-SUFFIX,qiyipic.com,Domestic
- DOMAIN-SUFFIX,qq.com,Domestic
- DOMAIN-SUFFIX,qqurl.com,Domestic
- DOMAIN-SUFFIX,rarbg.to,Domestic
- DOMAIN-SUFFIX,rr.tv,Domestic
- DOMAIN-SUFFIX,ruguoapp.com,Domestic
- DOMAIN-SUFFIX,segmentfault.com,Domestic
- DOMAIN-SUFFIX,sinaapp.com,Domestic
- DOMAIN-SUFFIX,sogou.com,Domestic
- DOMAIN-SUFFIX,sogoucdn.com,Domestic
- DOMAIN-SUFFIX,sohu.com,Domestic
- DOMAIN-SUFFIX,soku.com,Domestic
- DOMAIN-SUFFIX,speedtest.net,Domestic
- DOMAIN-SUFFIX,sspai.com,Domestic
- DOMAIN-SUFFIX,suning.com,Domestic
- DOMAIN-SUFFIX,taobao.com,Domestic
- DOMAIN-SUFFIX,tenpay.com,Domestic
- DOMAIN-SUFFIX,tmall.com,Domestic
- DOMAIN-SUFFIX,tudou.com,Domestic
- DOMAIN-SUFFIX,umetrip.com,Domestic
- DOMAIN-SUFFIX,upaiyun.com,Domestic
- DOMAIN-SUFFIX,upyun.com,Domestic
- DOMAIN-SUFFIX,v2ex.com,Domestic
- DOMAIN-SUFFIX,veryzhun.com,Domestic
- DOMAIN-SUFFIX,weather.com,Domestic
- DOMAIN-SUFFIX,weibo.com,Domestic
- DOMAIN-SUFFIX,xiami.com,Domestic
- DOMAIN-SUFFIX,xiami.net,Domestic
- DOMAIN-SUFFIX,xiaomicp.com,Domestic
- DOMAIN-SUFFIX,ximalaya.com,Domestic
- DOMAIN-SUFFIX,xmcdn.com,Domestic
- DOMAIN-SUFFIX,xunlei.com,Domestic
- DOMAIN-SUFFIX,yhd.com,Domestic
- DOMAIN-SUFFIX,yihaodianimg.com,Domestic
- DOMAIN-SUFFIX,yinxiang.com,Domestic
- DOMAIN-SUFFIX,ykimg.com,Domestic
- DOMAIN-SUFFIX,youdao.com,Domestic
- DOMAIN-SUFFIX,youku.com,Domestic
- DOMAIN-SUFFIX,zealer.com,Domestic
- DOMAIN-SUFFIX,zhihu.com,Domestic
- DOMAIN-SUFFIX,zhimg.com,Domestic
- DOMAIN-KEYWORD,amazon,Proxy
- DOMAIN-KEYWORD,google,Proxy
- DOMAIN-KEYWORD,gmail,Proxy
- DOMAIN-KEYWORD,youtube,Proxy
- DOMAIN-KEYWORD,facebook,Proxy
- DOMAIN-SUFFIX,fb.me,Proxy
- DOMAIN-SUFFIX,fbcdn.net,Proxy
- DOMAIN-KEYWORD,twitter,Proxy
- DOMAIN-KEYWORD,instagram,Proxy
- DOMAIN-KEYWORD,dropbox,Proxy
- DOMAIN-SUFFIX,twimg.com,Proxy
- DOMAIN-KEYWORD,blogspot,Proxy
- DOMAIN-SUFFIX,youtu.be,Proxy
- DOMAIN-KEYWORD,whatsapp,Proxy
- DOMAIN-SUFFIX,9to5mac.com,Proxy
- DOMAIN-SUFFIX,abpchina.org,Proxy
- DOMAIN-SUFFIX,adblockplus.org,Proxy
- DOMAIN-SUFFIX,adobe.com,Proxy
- DOMAIN-SUFFIX,alfredapp.com,Proxy
- DOMAIN-SUFFIX,amplitude.com,Proxy
- DOMAIN-SUFFIX,ampproject.org,Proxy
- DOMAIN-SUFFIX,android.com,Proxy
- DOMAIN-SUFFIX,angularjs.org,Proxy
- DOMAIN-SUFFIX,aolcdn.com,Proxy
- DOMAIN-SUFFIX,apkpure.com,Proxy
- DOMAIN-SUFFIX,appledaily.com,Proxy
- DOMAIN-SUFFIX,appshopper.com,Proxy
- DOMAIN-SUFFIX,appspot.com,Proxy
- DOMAIN-SUFFIX,arcgis.com,Proxy
- DOMAIN-SUFFIX,archive.org,Proxy
- DOMAIN-SUFFIX,armorgames.com,Proxy
- DOMAIN-SUFFIX,aspnetcdn.com,Proxy
- DOMAIN-SUFFIX,att.com,Proxy
- DOMAIN-SUFFIX,awsstatic.com,Proxy
- DOMAIN-SUFFIX,azureedge.net,Proxy
- DOMAIN-SUFFIX,azurewebsites.net,Proxy
- DOMAIN-SUFFIX,bing.com,Proxy
- DOMAIN-SUFFIX,bintray.com,Proxy
- DOMAIN-SUFFIX,bit.com,Proxy
- DOMAIN-SUFFIX,bit.ly,Proxy
- DOMAIN-SUFFIX,bitbucket.org,Proxy
- DOMAIN-SUFFIX,bjango.com,Proxy
- DOMAIN-SUFFIX,bkrtx.com,Proxy
- DOMAIN-SUFFIX,blog.com,Proxy
- DOMAIN-SUFFIX,blogcdn.com,Proxy
- DOMAIN-SUFFIX,blogger.com,Proxy
- DOMAIN-SUFFIX,blogsmithmedia.com,Proxy
- DOMAIN-SUFFIX,blogspot.com,Proxy
- DOMAIN-SUFFIX,blogspot.hk,Proxy
- DOMAIN-SUFFIX,bloomberg.com,Proxy
- DOMAIN-SUFFIX,box.com,Proxy
- DOMAIN-SUFFIX,box.net,Proxy
- DOMAIN-SUFFIX,cachefly.net,Proxy
- DOMAIN-SUFFIX,chromium.org,Proxy
- DOMAIN-SUFFIX,cl.ly,Proxy
- DOMAIN-SUFFIX,cloudflare.com,Proxy
- DOMAIN-SUFFIX,cloudfront.net,Proxy
- DOMAIN-SUFFIX,cloudmagic.com,Proxy
- DOMAIN-SUFFIX,cmail19.com,Proxy
- DOMAIN-SUFFIX,cnet.com,Proxy
- DOMAIN-SUFFIX,cocoapods.org,Proxy
- DOMAIN-SUFFIX,comodoca.com,Proxy
- DOMAIN-SUFFIX,content.office.net,Proxy
- DOMAIN-SUFFIX,crashlytics.com,Proxy
- DOMAIN-SUFFIX,culturedcode.com,Proxy
- DOMAIN-SUFFIX,d.pr,Proxy
- DOMAIN-SUFFIX,danilo.to,Proxy
- DOMAIN-SUFFIX,dayone.me,Proxy
- DOMAIN-SUFFIX,db.tt,Proxy
- DOMAIN-SUFFIX,deskconnect.com,Proxy
- DOMAIN-SUFFIX,digicert.com,Proxy
- DOMAIN-SUFFIX,disq.us,Proxy
- DOMAIN-SUFFIX,disqus.com,Proxy
- DOMAIN-SUFFIX,disquscdn.com,Proxy
- DOMAIN-SUFFIX,dlercloud.com,Proxy
- DOMAIN-SUFFIX,dnsimple.com,Proxy
- DOMAIN-SUFFIX,docker.com,Proxy
- DOMAIN-SUFFIX,dribbble.com,Proxy
- DOMAIN-SUFFIX,droplr.com,Proxy
- DOMAIN-SUFFIX,duckduckgo.com,Proxy
- DOMAIN-SUFFIX,dueapp.com,Proxy
- DOMAIN-SUFFIX,dytt8.net,Proxy
- DOMAIN-SUFFIX,edgecastcdn.net,Proxy
- DOMAIN-SUFFIX,edgekey.net,Proxy
- DOMAIN-SUFFIX,edgesuite.net,Proxy
- DOMAIN-SUFFIX,engadget.com,Proxy
- DOMAIN-SUFFIX,entrust.net,Proxy
- DOMAIN-SUFFIX,eurekavpt.com,Proxy
- DOMAIN-SUFFIX,evernote.com,Proxy
- DOMAIN-SUFFIX,fabric.io,Proxy
- DOMAIN-SUFFIX,fast.com,Proxy
- DOMAIN-SUFFIX,fastly.net,Proxy
- DOMAIN-SUFFIX,fc2.com,Proxy
- DOMAIN-SUFFIX,feedburner.com,Proxy
- DOMAIN-SUFFIX,feedly.com,Proxy
- DOMAIN-SUFFIX,feedsportal.com,Proxy
- DOMAIN-SUFFIX,fiftythree.com,Proxy
- DOMAIN-SUFFIX,firebaseio.com,Proxy
- DOMAIN-SUFFIX,flexibits.com,Proxy
- DOMAIN-SUFFIX,flickr.com,Proxy
- DOMAIN-SUFFIX,flipboard.com,Proxy
- DOMAIN-SUFFIX,g.co,Proxy
- DOMAIN-SUFFIX,gabia.net,Proxy
- DOMAIN-SUFFIX,geni.us,Proxy
- DOMAIN-SUFFIX,gfx.ms,Proxy
- DOMAIN-SUFFIX,ggpht.com,Proxy
- DOMAIN-SUFFIX,ghostnoteapp.com,Proxy
- DOMAIN-SUFFIX,git.io,Proxy
- DOMAIN-KEYWORD,github,Proxy
- DOMAIN-SUFFIX,globalsign.com,Proxy
- DOMAIN-SUFFIX,gmodules.com,Proxy
- DOMAIN-SUFFIX,godaddy.com,Proxy
- DOMAIN-SUFFIX,golang.org,Proxy
- DOMAIN-SUFFIX,gongm.in,Proxy
- DOMAIN-SUFFIX,goo.gl,Proxy
- DOMAIN-SUFFIX,goodreaders.com,Proxy
- DOMAIN-SUFFIX,goodreads.com,Proxy
- DOMAIN-SUFFIX,gravatar.com,Proxy
- DOMAIN-SUFFIX,gstatic.com,Proxy
- DOMAIN-SUFFIX,gvt0.com,Proxy
- DOMAIN-SUFFIX,hockeyapp.net,Proxy
- DOMAIN-SUFFIX,hotmail.com,Proxy
- DOMAIN-SUFFIX,icons8.com,Proxy
- DOMAIN-SUFFIX,ift.tt,Proxy
- DOMAIN-SUFFIX,ifttt.com,Proxy
- DOMAIN-SUFFIX,iherb.com,Proxy
- DOMAIN-SUFFIX,imageshack.us,Proxy
- DOMAIN-SUFFIX,img.ly,Proxy
- DOMAIN-SUFFIX,imgur.com,Proxy
- DOMAIN-SUFFIX,imore.com,Proxy
- DOMAIN-SUFFIX,instapaper.com,Proxy
- DOMAIN-SUFFIX,ipn.li,Proxy
- DOMAIN-SUFFIX,is.gd,Proxy
- DOMAIN-SUFFIX,issuu.com,Proxy
- DOMAIN-SUFFIX,itgonglun.com,Proxy
- DOMAIN-SUFFIX,itun.es,Proxy
- DOMAIN-SUFFIX,ixquick.com,Proxy
- DOMAIN-SUFFIX,j.mp,Proxy
- DOMAIN-SUFFIX,js.revsci.net,Proxy
- DOMAIN-SUFFIX,jshint.com,Proxy
- DOMAIN-SUFFIX,jtvnw.net,Proxy
- DOMAIN-SUFFIX,justgetflux.com,Proxy
- DOMAIN-SUFFIX,kat.cr,Proxy
- DOMAIN-SUFFIX,klip.me,Proxy
- DOMAIN-SUFFIX,libsyn.com,Proxy
- DOMAIN-SUFFIX,licdn.com,Proxy
- DOMAIN-SUFFIX,linkedin.com,Proxy
- DOMAIN-SUFFIX,linode.com,Proxy
- DOMAIN-SUFFIX,lithium.com,Proxy
- DOMAIN-SUFFIX,littlehj.com,Proxy
- DOMAIN-SUFFIX,live.com,Proxy
- DOMAIN-SUFFIX,live.net,Proxy
- DOMAIN-SUFFIX,livefilestore.com,Proxy
- DOMAIN-SUFFIX,llnwd.net,Proxy
- DOMAIN-SUFFIX,macid.co,Proxy
- DOMAIN-SUFFIX,macromedia.com,Proxy
- DOMAIN-SUFFIX,macrumors.com,Proxy
- DOMAIN-SUFFIX,mashable.com,Proxy
- DOMAIN-SUFFIX,mathjax.org,Proxy
- DOMAIN-SUFFIX,medium.com,Proxy
- DOMAIN-SUFFIX,mega.co.nz,Proxy
- DOMAIN-SUFFIX,mega.nz,Proxy
- DOMAIN-SUFFIX,megaupload.com,Proxy
- DOMAIN-SUFFIX,microsofttranslator.com,Proxy
- DOMAIN-SUFFIX,mindnode.com,Proxy
- DOMAIN-SUFFIX,mobile01.com,Proxy
- DOMAIN-SUFFIX,modmyi.com,Proxy
- DOMAIN-SUFFIX,msedge.net,Proxy
- DOMAIN-SUFFIX,myfontastic.com,Proxy
- DOMAIN-SUFFIX,name.com,Proxy
- DOMAIN-SUFFIX,nextmedia.com,Proxy
- DOMAIN-SUFFIX,nsstatic.net,Proxy
- DOMAIN-SUFFIX,nssurge.com,Proxy
- DOMAIN-SUFFIX,nyt.com,Proxy
- DOMAIN-SUFFIX,nytimes.com,Proxy
- DOMAIN-SUFFIX,office365.com,Proxy
- DOMAIN-SUFFIX,omnigroup.com,Proxy
- DOMAIN-SUFFIX,onedrive.com,Proxy
- DOMAIN-SUFFIX,onenote.com,Proxy
- DOMAIN-SUFFIX,ooyala.com,Proxy
- DOMAIN-SUFFIX,openvpn.net,Proxy
- DOMAIN-SUFFIX,openwrt.org,Proxy
- DOMAIN-SUFFIX,orkut.com,Proxy
- DOMAIN-SUFFIX,osxdaily.com,Proxy
- DOMAIN-SUFFIX,outlook.com,Proxy
- DOMAIN-SUFFIX,ow.ly,Proxy
- DOMAIN-SUFFIX,paddleapi.com,Proxy
- DOMAIN-SUFFIX,parallels.com,Proxy
- DOMAIN-SUFFIX,parse.com,Proxy
- DOMAIN-SUFFIX,pdfexpert.com,Proxy
- DOMAIN-SUFFIX,periscope.tv,Proxy
- DOMAIN-SUFFIX,pinboard.in,Proxy
- DOMAIN-SUFFIX,pinterest.com,Proxy
- DOMAIN-SUFFIX,pixelmator.com,Proxy
- DOMAIN-SUFFIX,pixiv.net,Proxy
- DOMAIN-SUFFIX,playpcesor.com,Proxy
- DOMAIN-SUFFIX,playstation.com,Proxy
- DOMAIN-SUFFIX,playstation.com.hk,Proxy
- DOMAIN-SUFFIX,playstation.net,Proxy
- DOMAIN-SUFFIX,playstationnetwork.com,Proxy
- DOMAIN-SUFFIX,pushwoosh.com,Proxy
- DOMAIN-SUFFIX,rime.im,Proxy
- DOMAIN-SUFFIX,servebom.com,Proxy
- DOMAIN-SUFFIX,sfx.ms,Proxy
- DOMAIN-SUFFIX,shadowsocks.org,Proxy
- DOMAIN-SUFFIX,sharethis.com,Proxy
- DOMAIN-SUFFIX,shazam.com,Proxy
- DOMAIN-SUFFIX,skype.com,Proxy
- DOMAIN-SUFFIX,smartdnsProxy.com,Proxy
- DOMAIN-SUFFIX,smartmailcloud.com,Proxy
- DOMAIN-SUFFIX,sndcdn.com,Proxy
- DOMAIN-SUFFIX,sony.com,Proxy
- DOMAIN-SUFFIX,soundcloud.com,Proxy
- DOMAIN-SUFFIX,sourceforge.net,Proxy
- DOMAIN-SUFFIX,spotify.com,Proxy
- DOMAIN-SUFFIX,squarespace.com,Proxy
- DOMAIN-SUFFIX,sstatic.net,Proxy
- DOMAIN-SUFFIX,st.luluku.pw,Proxy
- DOMAIN-SUFFIX,stackoverflow.com,Proxy
- DOMAIN-SUFFIX,startpage.com,Proxy
- DOMAIN-SUFFIX,staticflickr.com,Proxy
- DOMAIN-SUFFIX,steamcommunity.com,Proxy
- DOMAIN-SUFFIX,symauth.com,Proxy
- DOMAIN-SUFFIX,symcb.com,Proxy
- DOMAIN-SUFFIX,symcd.com,Proxy
- DOMAIN-SUFFIX,tapbots.com,Proxy
- DOMAIN-SUFFIX,tapbots.net,Proxy
- DOMAIN-SUFFIX,tdesktop.com,Proxy
- DOMAIN-SUFFIX,techcrunch.com,Proxy
- DOMAIN-SUFFIX,techsmith.com,Proxy
- DOMAIN-SUFFIX,thepiratebay.org,Proxy
- DOMAIN-SUFFIX,theverge.com,Proxy
- DOMAIN-SUFFIX,time.com,Proxy
- DOMAIN-SUFFIX,timeinc.net,Proxy
- DOMAIN-SUFFIX,tiny.cc,Proxy
- DOMAIN-SUFFIX,tinypic.com,Proxy
- DOMAIN-SUFFIX,tmblr.co,Proxy
- DOMAIN-SUFFIX,todoist.com,Proxy
- DOMAIN-SUFFIX,trello.com,Proxy
- DOMAIN-SUFFIX,trustasiassl.com,Proxy
- DOMAIN-SUFFIX,tumblr.co,Proxy
- DOMAIN-SUFFIX,tumblr.com,Proxy
- DOMAIN-SUFFIX,tweetdeck.com,Proxy
- DOMAIN-SUFFIX,tweetmarker.net,Proxy
- DOMAIN-SUFFIX,twitch.tv,Proxy
- DOMAIN-SUFFIX,txmblr.com,Proxy
- DOMAIN-SUFFIX,typekit.net,Proxy
- DOMAIN-SUFFIX,ubertags.com,Proxy
- DOMAIN-SUFFIX,ublock.org,Proxy
- DOMAIN-SUFFIX,ubnt.com,Proxy
- DOMAIN-SUFFIX,ulyssesapp.com,Proxy
- DOMAIN-SUFFIX,urchin.com,Proxy
- DOMAIN-SUFFIX,usertrust.com,Proxy
- DOMAIN-SUFFIX,v.gd,Proxy
- DOMAIN-SUFFIX,vimeo.com,Proxy
- DOMAIN-SUFFIX,vimeocdn.com,Proxy
- DOMAIN-SUFFIX,vine.co,Proxy
- DOMAIN-SUFFIX,vivaldi.com,Proxy
- DOMAIN-SUFFIX,vox-cdn.com,Proxy
- DOMAIN-SUFFIX,vsco.co,Proxy
- DOMAIN-SUFFIX,vultr.com,Proxy
- DOMAIN-SUFFIX,w.org,Proxy
- DOMAIN-SUFFIX,w3schools.com,Proxy
- DOMAIN-SUFFIX,webtype.com,Proxy
- DOMAIN-SUFFIX,wikiwand.com,Proxy
- DOMAIN-SUFFIX,wikileaks.org,Proxy
- DOMAIN-SUFFIX,wikimedia.org,Proxy
- DOMAIN-SUFFIX,wikipedia.com,Proxy
- DOMAIN-SUFFIX,wikipedia.org,Proxy
- DOMAIN-SUFFIX,windows.com,Proxy
- DOMAIN-SUFFIX,windows.net,Proxy
- DOMAIN-SUFFIX,wire.com,Proxy
- DOMAIN-SUFFIX,wordpress.com,Proxy
- DOMAIN-SUFFIX,workflowy.com,Proxy
- DOMAIN-SUFFIX,wp.com,Proxy
- DOMAIN-SUFFIX,wsj.com,Proxy
- DOMAIN-SUFFIX,wsj.net,Proxy
- DOMAIN-SUFFIX,xda-developers.com,Proxy
- DOMAIN-SUFFIX,xeeno.com,Proxy
- DOMAIN-SUFFIX,xiti.com,Proxy
- DOMAIN-SUFFIX,yahoo.com,Proxy
- DOMAIN-SUFFIX,yimg.com,Proxy
- DOMAIN-SUFFIX,ying.com,Proxy
- DOMAIN-SUFFIX,yoyo.org,Proxy
- DOMAIN-SUFFIX,ytimg.com,Proxy
- DOMAIN-SUFFIX,telegra.ph,Proxy
- DOMAIN-SUFFIX,telegram.org,Proxy
- IP-CIDR,91.108.56.0/22,Proxy
- IP-CIDR,91.108.4.0/22,Proxy
- IP-CIDR,91.108.8.0/22,Proxy
- IP-CIDR,109.239.140.0/24,Proxy
- IP-CIDR,149.154.160.0/20,Proxy
- IP-CIDR,149.154.164.0/22,Proxy
- DOMAIN-SUFFIX,local,DIRECT
- IP-CIDR,127.0.0.0/8,DIRECT
- IP-CIDR,172.16.0.0/12,DIRECT
- IP-CIDR,192.168.0.0/16,DIRECT
- IP-CIDR,10.0.0.0/8,DIRECT
- IP-CIDR,17.0.0.0/8,DIRECT
- IP-CIDR,100.64.0.0/10,DIRECT
- GEOIP,CN,Domestic
- MATCH,Others
{$ProxyGroups}
# 规则
{if $Profiles == 'ConnersHua_Pro'}
{include file='rule/ConnersHua_Pro.yaml'}
{elseif $Profiles == 'ConnersHua_BacktoCN'}
{include file='rule/ConnersHua_BacktoCN.yaml'}
{else}
{include file='rule/lhie1_Rule.yaml'}
{/if}

@ -0,0 +1,36 @@
{if $quantumult == 3}
[SERVER]
{$proxys['ss']}{$proxys['ssr']}{$proxys['v2ray']}
[POLICY]
{$groups['proxy_group']}
{$groups['domestic_group']}
{$groups['others_group']}
{$groups['apple_group']}
{$groups['auto_group']}
{$groups['direct_group']}
[Rule]
{include file='rule/Apple.conf'}
{include file='rule/PROXY.conf'}
{include file='rule/DIRECT.conf'}
GEOIP,CN,🍂 Domestic
FINAL,☁️ Others
{elseif $quantumult == 2}
[SERVER]
[SOURCE]
{$appName}_v2, server ,{$subUrl}?quantumult=1, false, true, false
{$appName}_ss, server ,{$subUrl}?sub=2, false, true, false
{$appName}_ssr, server ,{$subUrl}?sub=1, false, true, false
Hackl0us Rules, filter, https://raw.githubusercontent.com/Hackl0us/Surge-Rule-Snippets/master/LAZY_RULES/Quantumult.conf, true
{/if}
[DNS]
system, 119.29.29.29, 223.6.6.6, 80.80.81.81, 1.1.1.1
[STATE]
STATE,AUTO

@ -0,0 +1,40 @@
# Apple
URL-REGEX,*apple.com/cn,🍎 Only
PROCESS-NAME,storedownloadd,🍎 Only
USER-AGENT,%E5%9C%B0%E5%9B%BE*,🍎 Only
USER-AGENT,%E8%AE%BE%E7%BD%AE*,🍎 Only
USER-AGENT,*com.apple.mobileme.fmip1,🍎 Only
USER-AGENT,*WeatherFoundation*,🍎 Only
USER-AGENT,*AssistantServices*,🍎 Only
USER-AGENT,MobileAsset*,🍎 Only
USER-AGENT,Siri*,🍎 Only
USER-AGENT,cloudd*,🍎 Only
USER-AGENT,com.apple.appstored*,🍎 Only
USER-AGENT,com.apple.geod*,🍎 Only
USER-AGENT,com.apple.Maps,🍎 Only
USER-AGENT,FindMyFriends*,🍎 Only
USER-AGENT,FindMyiPhone*,🍎 Only
USER-AGENT,FMDClient*,🍎 Only
USER-AGENT,FMFD*,🍎 Only
USER-AGENT,fmflocatord*,🍎 Only
USER-AGENT,geod*,🍎 Only
USER-AGENT,locationd*,🍎 Only
USER-AGENT,Maps*,🍎 Only
DOMAIN,guzzoni.apple.com,🍎 Only
DOMAIN-SUFFIX,aaplimg.com,🍎 Only
DOMAIN-SUFFIX,apple.co,🍎 Only
DOMAIN-SUFFIX,apple.com,🍎 Only
DOMAIN-SUFFIX,apple-cloudkit.com,🍎 Only
DOMAIN-SUFFIX,cdn-apple.com,🍎 Only
DOMAIN-SUFFIX,icloud.com,🍎 Only
DOMAIN-SUFFIX,icloud-content.com,🍎 Only
DOMAIN-SUFFIX,itunes.apple.com,🍎 Only
DOMAIN-SUFFIX,itunes.com,🍎 Only
DOMAIN-SUFFIX,lookup-api.apple.com,🍎 Only
DOMAIN-SUFFIX,me.com,🍎 Only
DOMAIN-SUFFIX,mzstatic.com,🍎 Only

@ -0,0 +1,78 @@
Rule:
# (Video)
# AcFun
# USER-AGENT,AcFun*,PROXY
- DOMAIN-SUFFIX,acfun.cn,PROXY
- DOMAIN-SUFFIX,acfun.com,PROXY
- DOMAIN-SUFFIX,aixifan.com,PROXY
# > bilibili
# USER-AGENT,bili-universal,PROXY
# USER-AGENT,Bilibili*,PROXY
- DOMAIN-SUFFIX,acgvideo.com,PROXY
- DOMAIN-SUFFIX,bilibili.com,PROXY
- DOMAIN-SUFFIX,hdslb.com,PROXY
# > HunanTV
# USER-AGENT,MGTV*,PROXY
- DOMAIN-SUFFIX,hitv.com,PROXY
- DOMAIN-SUFFIX,hunantv.com,PROXY
- DOMAIN-SUFFIX,mgtv.com,PROXY
# > Migu
# USER-AGENT,MiguVideo*,PROXY
# USER-AGENT,%E5%92%AA%E5%92%95%E8%A7%86%E9%A2%91,PROXY
- DOMAIN-SUFFIX,cmvideo.cn,PROXY
- DOMAIN-SUFFIX,migu.cn,PROXY
- DOMAIN-SUFFIX,miguvideo.com,PROXY
# > iQiyi
# USER-AGENT,iQiYiPhoneVideo,PROXY
# USER-AGENT,PPStream,PROXY
# USER-AGENT,QIYIVideo,PROXY
# USER-AGENT,QYPlayer,PROXY
- DOMAIN-SUFFIX,iqiyi.com,PROXY
- DOMAIN-SUFFIX,iqiyipic.com,PROXY
- DOMAIN-SUFFIX,qy.net,PROXY
# > Sohu
- DOMAIN-SUFFIX,sohu.com,PROXY
- DOMAIN-SUFFIX,sohu.com.cn,PROXY
- DOMAIN-SUFFIX,itc.cn,PROXY
- DOMAIN-SUFFIX,v-56.com,PROXY
# > Tencent
# USER-AGENT,live4iphone*,PROXY
# USER-AGENT,qqlive4iphone*,PROXY
# USER-AGENT,TencentMidasConnect*,PROXY
- DOMAIN-SUFFIX,video.qq.com,PROXY
# > Youku
# USER-AGENT,Youku*,PROXY
# USER-AGENT,%E4%BC%98%E9%85%B7*,PROXY
- DOMAIN-SUFFIX,soku.com,PROXY
- DOMAIN-SUFFIX,youku.com,PROXY
- DOMAIN-SUFFIX,ykimg.com,PROXY
# (Music)
# > Alibaba
# USER-AGENT,walkman*,PROXY
# USER-AGENT,xiami*,PROXY
- DOMAIN-SUFFIX,xiami.com,PROXY
- DOMAIN-SUFFIX,xiami.net,PROXY
# > Netease
# USER-AGENT,NeteaseMusic*,PROXY
# USER-AGENT,%E7%BD%91%E6%98%93%E4%BA%91%E9%9F%B3%E4%B9%90*,PROXY
- DOMAIN-SUFFIX,music.126.net,PROXY
- DOMAIN-SUFFIX,music.163.com,PROXY
# > Tencent
# USER-AGENT,MOO%E9%9F%B3%E4%B9%90*,PROXY
# USER-AGENT,QQ%E9%9F%B3%E4%B9%90,PROXY
- DOMAIN-SUFFIX,qqmusic.qq.com,PROXY
- DOMAIN-SUFFIX,y.qq.com,PROXY
- DOMAIN,aqqmusic.tc.qq.com,PROXY
# Kugou and Kuwo
- DOMAIN-SUFFIX,kugou.com,PROXY
# USER-AGENT,%E9%85%B7%E6%88%91%E9%9F%B3%E4%B9%90*,PROXY
- DOMAIN-SUFFIX,kuwo.cn,PROXY
- DOMAIN-SUFFIX,koowo.com,PROXY
# > Baidu
# USER-AGENT,baiduyinyue,PROXY
- DOMAIN-SUFFIX,qianqian.com,PROXY
- GEOIP,CN,PROXY
- MATCH,DIRECT

File diff suppressed because it is too large Load Diff

@ -0,0 +1,329 @@
# DIRECT
// Client
PROCESS-NAME,Paws for Trello,🍂 Domestic
PROCESS-NAME,ss-local,🍂 Domestic
PROCESS-NAME,Thunder,🍂 Domestic
PROCESS-NAME,DownloadService,🍂 Domestic
PROCESS-NAME,TeamViewer,🍂 Domestic
PROCESS-NAME,trustd,🍂 Domestic
PROCESS-NAME,WebTorrent,🍂 Domestic
PROCESS-NAME,WeChat,🍂 Domestic
// UA
USER-AGENT, %E4%BA%AC%E4%B8%9C%E5%88%B0%E5%AE%B6*,🍂 Domestic
USER-AGENT,%E5%8D%B3%E5%88%BB*,🍂 Domestic
USER-AGENT,*Vainglory* ,🍂 Domestic
USER-AGENT,AdBlock*,🍂 Domestic
USER-AGENT,arrowio*,🍂 Domestic
USER-AGENT,balls*,🍂 Domestic
USER-AGENT,Beplay*,🍂 Domestic
USER-AGENT,Best%20Trace*,🍂 Domestic
USER-AGENT,cmblife*,🍂 Domestic
USER-AGENT,eusoft_ting_en_iphone,🍂 Domestic
USER-AGENT,hide*,🍂 Domestic
USER-AGENT,JDLife*,🍂 Domestic
USER-AGENT,LastPass*,🍂 Domestic
USER-AGENT,MegaWerewolf*,🍂 Domestic
USER-AGENT,MicroMessenger*,🍂 Domestic
USER-AGENT,Microsoft*,🍂 Domestic
USER-AGENT,Moke*,🍂 Domestic
USER-AGENT,osee2unifiedRelease*,🍂 Domestic
USER-AGENT,PayPal*,🍂 Domestic
USER-AGENT,QQ*,🍂 Domestic
USER-AGENT,Speedtest*,🍂 Domestic
USER-AGENT,TeamViewer*,🍂 Domestic
USER-AGENT,TIM*,🍂 Domestic
USER-AGENT,ting_en,🍂 Domestic
USER-AGENT,WebTorrent*,🍂 Domestic
USER-AGENT,WeChat*,🍂 Domestic
// Beplay
DOMAIN-KEYWORD,beplay,🍂 Domestic
// Blizzard
USER-AGENT,Blizzard*,🍂 Domestic
USER-AGENT,wowcompanion*,🍂 Domestic
DOMAIN-SUFFIX,battle.net,🍂 Domestic
DOMAIN-SUFFIX,battlenet.com,🍂 Domestic
DOMAIN-SUFFIX,blizzard.com,🍂 Domestic
// Prior
DOMAIN,client.amplifi.com,🍂 Domestic
DOMAIN,ip.bjango.com,🍂 Domestic // iStat Menu IP Test
DOMAIN-SUFFIX,alphassl.com,🍂 Domestic
DOMAIN-SUFFIX,edu.cn,🍂 Domestic
// Steam
DOMAIN-SUFFIX,steamcontent.com,🍂 Domestic
// TeamViewer
IP-CIDR,139.220.243.27/32,🍂 Domestic,no-resolve
IP-CIDR,172.16.102.56/32,🍂 Domestic,no-resolve
IP-CIDR,185.188.32.1/28,🍂 Domestic,no-resolve
IP-CIDR,221.226.128.146/32,🍂 Domestic,no-resolve
# Domestic
DOMAIN-SUFFIX,cn,🍂 Domestic
DOMAIN-SUFFIX,12306.com,🍂 Domestic
DOMAIN-SUFFIX,126.net,🍂 Domestic
DOMAIN-SUFFIX,163.com,🍂 Domestic
DOMAIN-SUFFIX,360.cn,🍂 Domestic
DOMAIN-SUFFIX,360.com,🍂 Domestic
DOMAIN-SUFFIX,360buy.com,🍂 Domestic
DOMAIN-SUFFIX,360buyimg.com,🍂 Domestic
DOMAIN-SUFFIX,36kr.com,🍂 Domestic
DOMAIN-SUFFIX,51ym.me,🍂 Domestic
DOMAIN-SUFFIX,58.com,🍂 Domestic
DOMAIN-SUFFIX,8686c.com,🍂 Domestic
DOMAIN-SUFFIX,abercrombie.com,🍂 Domestic
DOMAIN-SUFFIX,acfun.tv,🍂 Domestic
DOMAIN-SUFFIX,acgvideo.com,🍂 Domestic
DOMAIN-SUFFIX,adobesc.com,🍂 Domestic
DOMAIN-SUFFIX,air-matters.com,🍂 Domestic
DOMAIN-SUFFIX,air-matters.io,🍂 Domestic
DOMAIN-SUFFIX,airtable.com,🍂 Domestic
DOMAIN-SUFFIX,aixifan.com,🍂 Domestic
DOMAIN-SUFFIX,akadns.net,🍂 Domestic
DOMAIN-SUFFIX,alicdn.com,🍂 Domestic
DOMAIN-SUFFIX,alipay.com,🍂 Domestic
DOMAIN-SUFFIX,alipayobjects.com,🍂 Domestic
DOMAIN-SUFFIX,aliyun.com,🍂 Domestic
DOMAIN-SUFFIX,amap.com,🍂 Domestic
DOMAIN-SUFFIX,apache.org,🍂 Domestic
DOMAIN-SUFFIX,api.crisp.chat,🍂 Domestic
DOMAIN-SUFFIX,api.termius.com,🍂 Domestic
DOMAIN-SUFFIX,appshike.com,🍂 Domestic
DOMAIN-SUFFIX,appstore.com,🍂 Domestic
DOMAIN-SUFFIX,autonavi.com,🍂 Domestic
DOMAIN-SUFFIX,aweme.snssdk.com,🍂 Domestic
DOMAIN-SUFFIX,bababian.com,🍂 Domestic
DOMAIN-SUFFIX,baidu.com,🍂 Domestic
DOMAIN-SUFFIX,battle.net,🍂 Domestic
DOMAIN-SUFFIX,bdimg.com,🍂 Domestic
DOMAIN-SUFFIX,bdstatic.com,🍂 Domestic
DOMAIN-SUFFIX,beatsbydre.com,🍂 Domestic
DOMAIN-SUFFIX,bet365.com,🍂 Domestic
DOMAIN-SUFFIX,bilibili.cn,🍂 Domestic
DOMAIN-SUFFIX,bilibili.com,🍂 Domestic
DOMAIN-SUFFIX,caiyunapp.com,🍂 Domestic
DOMAIN-SUFFIX,ccgslb.com,🍂 Domestic
DOMAIN-SUFFIX,ccgslb.net,🍂 Domestic
DOMAIN-SUFFIX,chinacache.net,🍂 Domestic
DOMAIN-SUFFIX,chunbo.com,🍂 Domestic
DOMAIN-SUFFIX,chunboimg.com,🍂 Domestic
DOMAIN-SUFFIX,clashroyaleapp.com,🍂 Domestic
DOMAIN-SUFFIX,clouddn.com,🍂 Domestic
DOMAIN-SUFFIX,cloudsigma.com,🍂 Domestic
DOMAIN-SUFFIX,cloudxns.net,🍂 Domestic
DOMAIN-SUFFIX,cmfu.com,🍂 Domestic
DOMAIN-SUFFIX,cnbeta.com,🍂 Domestic
DOMAIN-SUFFIX,cnbetacdn.com,🍂 Domestic
DOMAIN-SUFFIX,culturedcode.com,🍂 Domestic
DOMAIN-SUFFIX,dct-cloud.com,🍂 Domestic
DOMAIN-SUFFIX,didialift.com,🍂 Domestic
DOMAIN-SUFFIX,digicert.com,🍂 Domestic
DOMAIN-SUFFIX,douban.com,🍂 Domestic
DOMAIN-SUFFIX,doubanio.com,🍂 Domestic
DOMAIN-SUFFIX,douyu.com,🍂 Domestic
DOMAIN-SUFFIX,douyu.tv,🍂 Domestic
DOMAIN-SUFFIX,douyutv.com,🍂 Domestic
DOMAIN-SUFFIX,duokan.com,🍂 Domestic
DOMAIN-SUFFIX,duoshuo.com,🍂 Domestic
DOMAIN-SUFFIX,dytt8.net,🍂 Domestic
DOMAIN-SUFFIX,easou.com,🍂 Domestic
DOMAIN-SUFFIX,ecitic.com,🍂 Domestic
DOMAIN-SUFFIX,ecitic.net,🍂 Domestic
DOMAIN-SUFFIX,eclipse.org,🍂 Domestic
DOMAIN-SUFFIX,eudic.net,🍂 Domestic
DOMAIN-SUFFIX,ewqcxz.com,🍂 Domestic
DOMAIN-SUFFIX,feng.com,🍂 Domestic
DOMAIN-SUFFIX,fir.im,🍂 Domestic
DOMAIN-SUFFIX,frdic.com,🍂 Domestic
DOMAIN-SUFFIX,fresh-ideas.cc,🍂 Domestic
DOMAIN-SUFFIX,geetest.com,🍂 Domestic
DOMAIN-SUFFIX,godic.net,🍂 Domestic
DOMAIN-SUFFIX,goodread.com,🍂 Domestic
DOMAIN-SUFFIX,google.cn,🍂 Domestic
DOMAIN-SUFFIX,gtimg.com,🍂 Domestic
DOMAIN-SUFFIX,haibian.com,🍂 Domestic
DOMAIN-SUFFIX,hao123.com,🍂 Domestic
DOMAIN-SUFFIX,haosou.com,🍂 Domestic
DOMAIN-SUFFIX,hdslb.com,🍂 Domestic
DOMAIN-SUFFIX,hdslb.net,🍂 Domestic
DOMAIN-SUFFIX,hollisterco.com,🍂 Domestic
DOMAIN-SUFFIX,hongxiu.com,🍂 Domestic
DOMAIN-SUFFIX,hxcdn.net,🍂 Domestic
DOMAIN-SUFFIX,iciba.com,🍂 Domestic
DOMAIN-SUFFIX,ifeng.com,🍂 Domestic
DOMAIN-SUFFIX,ifengimg.com,🍂 Domestic
DOMAIN-SUFFIX,images.unsplash.com,🍂 Domestic
DOMAIN-SUFFIX,images-amazon.com,🍂 Domestic
DOMAIN-SUFFIX,img4me.com,🍂 Domestic
DOMAIN-SUFFIX,ipify.org,🍂 Domestic
DOMAIN-SUFFIX,ipip.net,🍂 Domestic
DOMAIN-SUFFIX,iqiyi.com,🍂 Domestic
DOMAIN-SUFFIX,ithome.com,🍂 Domestic
DOMAIN-SUFFIX,ixdzs.com,🍂 Domestic
DOMAIN-SUFFIX,jd.com,🍂 Domestic
DOMAIN-SUFFIX,jd.hk,🍂 Domestic
DOMAIN-SUFFIX,jianshu.com,🍂 Domestic
DOMAIN-SUFFIX,jianshu.io,🍂 Domestic
DOMAIN-SUFFIX,jianshuapi.com,🍂 Domestic
DOMAIN-SUFFIX,jiathis.com,🍂 Domestic
DOMAIN-SUFFIX,jomodns.com,🍂 Domestic
DOMAIN-SUFFIX,jsboxbbs.com,🍂 Domestic
DOMAIN-SUFFIX,knewone.com,🍂 Domestic
DOMAIN-SUFFIX,kuaidi100.com,🍂 Domestic
DOMAIN-SUFFIX,lecloud.com,🍂 Domestic
DOMAIN-SUFFIX,lemicp.com,🍂 Domestic
DOMAIN-SUFFIX,letv.com,🍂 Domestic
DOMAIN-SUFFIX,letvcloud.com,🍂 Domestic
DOMAIN-SUFFIX,lizhi.io,🍂 Domestic
DOMAIN-SUFFIX,localizecdn.com,🍂 Domestic
DOMAIN-SUFFIX,lucifr.com,🍂 Domestic
DOMAIN-SUFFIX,luoo.net,🍂 Domestic
DOMAIN-SUFFIX,lxdns.com,🍂 Domestic
DOMAIN-SUFFIX,mai.tn,🍂 Domestic
DOMAIN-SUFFIX,maven.org,🍂 Domestic
DOMAIN-SUFFIX,meizu.com,🍂 Domestic
DOMAIN-SUFFIX,mi.com,🍂 Domestic
DOMAIN-SUFFIX,miaopai.com,🍂 Domestic
DOMAIN-SUFFIX,miui.com,🍂 Domestic
DOMAIN-SUFFIX,miwifi.com,🍂 Domestic
DOMAIN-SUFFIX,mob.com,🍂 Domestic
DOMAIN-SUFFIX,moji.com,🍂 Domestic
DOMAIN-SUFFIX,moke.com,🍂 Domestic
DOMAIN-SUFFIX,mtalk.google.com,🍂 Domestic
DOMAIN-SUFFIX,mxhichina.com,🍂 Domestic
DOMAIN-SUFFIX,myqcloud.com,🍂 Domestic
DOMAIN-SUFFIX,myunlu.com,🍂 Domestic
DOMAIN-SUFFIX,netease.com,🍂 Domestic
DOMAIN-SUFFIX,nfoservers.com,🍂 Domestic
DOMAIN-SUFFIX,nssurge.com,🍂 Domestic
DOMAIN-SUFFIX,nuomi.com,🍂 Domestic
DOMAIN-SUFFIX,ourdvs.com,🍂 Domestic
DOMAIN-SUFFIX,overcast.fm,🍂 Domestic
DOMAIN-SUFFIX,paypal.com,🍂 Domestic
DOMAIN-SUFFIX,paypalobjects.com,🍂 Domestic
DOMAIN-SUFFIX,pgyer.com,🍂 Domestic
DOMAIN-SUFFIX,pstatp.com,🍂 Domestic
DOMAIN-SUFFIX,qbox.me,🍂 Domestic
DOMAIN-SUFFIX,qcloud.com,🍂 Domestic
DOMAIN-SUFFIX,qdaily.com,🍂 Domestic
DOMAIN-SUFFIX,qdmm.com,🍂 Domestic
DOMAIN-SUFFIX,qhimg.com,🍂 Domestic
DOMAIN-SUFFIX,qidian.com,🍂 Domestic
DOMAIN-SUFFIX,qihucdn.com,🍂 Domestic
DOMAIN-SUFFIX,qin.io,🍂 Domestic
DOMAIN-SUFFIX,qingmang.me,🍂 Domestic
DOMAIN-SUFFIX,qingmang.mobi,🍂 Domestic
DOMAIN-SUFFIX,qiniucdn.com,🍂 Domestic
DOMAIN-SUFFIX,qiniudn.com,🍂 Domestic
DOMAIN-SUFFIX,qiyi.com,🍂 Domestic
DOMAIN-SUFFIX,qiyipic.com,🍂 Domestic
DOMAIN-SUFFIX,qq.com,🍂 Domestic
DOMAIN-SUFFIX,qqurl.com,🍂 Domestic
DOMAIN-SUFFIX,rarbg.to,🍂 Domestic
DOMAIN-SUFFIX,rrmj.tv,🍂 Domestic
DOMAIN-SUFFIX,ruguoapp.com,🍂 Domestic
DOMAIN-SUFFIX,sandai.net,🍂 Domestic
DOMAIN-SUFFIX,sf-express.com,🍂 Domestic
DOMAIN-SUFFIX,sinaapp.com,🍂 Domestic
DOMAIN-SUFFIX,sinaimg.cn,🍂 Domestic
DOMAIN-SUFFIX,sinaimg.com,🍂 Domestic
DOMAIN-SUFFIX,sm.ms,🍂 Domestic
DOMAIN-SUFFIX,smzdm.com,🍂 Domestic
DOMAIN-SUFFIX,snssdk.com,🍂 Domestic
DOMAIN-SUFFIX,snwx.com,🍂 Domestic
DOMAIN-SUFFIX,so.com,🍂 Domestic
DOMAIN-SUFFIX,sogou.com,🍂 Domestic
DOMAIN-SUFFIX,sogoucdn.com,🍂 Domestic
DOMAIN-SUFFIX,sohu.com,🍂 Domestic
DOMAIN-SUFFIX,soku.com,🍂 Domestic
DOMAIN-SUFFIX,soso.com,🍂 Domestic
DOMAIN-SUFFIX,speedtest.net,🍂 Domestic
DOMAIN-SUFFIX,sspai.com,🍂 Domestic
DOMAIN-SUFFIX,startssl.com,🍂 Domestic
DOMAIN-SUFFIX,store.steampowered.com,🍂 Domestic
DOMAIN-SUFFIX,suning.com,🍂 Domestic
DOMAIN-SUFFIX,symcd.com,🍂 Domestic
DOMAIN-SUFFIX,taobao.com,🍂 Domestic
DOMAIN-SUFFIX,teamviewer.com,🍂 Domestic
DOMAIN-SUFFIX,tenpay.com,🍂 Domestic
DOMAIN-SUFFIX,tietuku.com,🍂 Domestic
DOMAIN-SUFFIX,tmall.com,🍂 Domestic
DOMAIN-SUFFIX,tmzvps.com,🍂 Domestic
DOMAIN-SUFFIX,trello.com,🍂 Domestic
DOMAIN-SUFFIX,trellocdn.com,🍂 Domestic
DOMAIN-SUFFIX,ttmeiju.com,🍂 Domestic
DOMAIN-SUFFIX,tudou.com,🍂 Domestic
DOMAIN-SUFFIX,udache.com,🍂 Domestic
DOMAIN-SUFFIX,umengcloud.com,🍂 Domestic
DOMAIN-SUFFIX,upaiyun.com,🍂 Domestic
DOMAIN-SUFFIX,upyun.com,🍂 Domestic
DOMAIN-SUFFIX,uxengine.net,🍂 Domestic
DOMAIN-SUFFIX,v2ex.co,🍂 Domestic
DOMAIN-SUFFIX,v2ex.com,🍂 Domestic
DOMAIN-SUFFIX,wandoujia.com,🍂 Domestic
DOMAIN-SUFFIX,weather.bjango.com,🍂 Domestic
DOMAIN-SUFFIX,weather.com,🍂 Domestic
DOMAIN-SUFFIX,webqxs.com,🍂 Domestic
DOMAIN-SUFFIX,weibo.cn,🍂 Domestic
DOMAIN-SUFFIX,weibo.com,🍂 Domestic
DOMAIN-SUFFIX,weico.cc,🍂 Domestic
DOMAIN-SUFFIX,weiphone.com,🍂 Domestic
DOMAIN-SUFFIX,weiphone.net,🍂 Domestic
DOMAIN-SUFFIX,wenku8.net,🍂 Domestic
DOMAIN-SUFFIX,werewolf.53site.com,🍂 Domestic
DOMAIN-SUFFIX,windowsupdate.com,🍂 Domestic
DOMAIN-SUFFIX,wkcdn.com,🍂 Domestic
DOMAIN-SUFFIX,workflowy.com,🍂 Domestic
DOMAIN-SUFFIX,xdrig.com,🍂 Domestic
DOMAIN-SUFFIX,xiami.com,🍂 Domestic
DOMAIN-SUFFIX,xiami.net,🍂 Domestic
DOMAIN-SUFFIX,xiaojukeji.com,🍂 Domestic
DOMAIN-SUFFIX,xiaomi.com,🍂 Domestic
DOMAIN-SUFFIX,xiaomi.net,🍂 Domestic
DOMAIN-SUFFIX,xiaomicp.com,🍂 Domestic
DOMAIN-SUFFIX,ximalaya.com,🍂 Domestic
DOMAIN-SUFFIX,xitek.com,🍂 Domestic
DOMAIN-SUFFIX,xmcdn.com,🍂 Domestic
DOMAIN-SUFFIX,xslb.net,🍂 Domestic
DOMAIN-SUFFIX,xteko.com,🍂 Domestic
DOMAIN-SUFFIX,xunlei.com,🍂 Domestic
DOMAIN-SUFFIX,yach.me,🍂 Domestic
DOMAIN-SUFFIX,yeepay.com,🍂 Domestic
DOMAIN-SUFFIX,yhd.com,🍂 Domestic
DOMAIN-SUFFIX,yinxiang.com,🍂 Domestic
DOMAIN-SUFFIX,yixia.com,🍂 Domestic
DOMAIN-SUFFIX,ykimg.com,🍂 Domestic
DOMAIN-SUFFIX,youdao.com,🍂 Domestic
DOMAIN-SUFFIX,youku.com,🍂 Domestic
DOMAIN-SUFFIX,yunjiasu-cdn.net,🍂 Domestic
DOMAIN-SUFFIX,zealer.com,🍂 Domestic
DOMAIN-SUFFIX,zgslb.net,🍂 Domestic
DOMAIN-SUFFIX,zhihu.com,🍂 Domestic
DOMAIN-SUFFIX,zhimg.com,🍂 Domestic
DOMAIN-SUFFIX,zimuzu.tv,🍂 Domestic
DOMAIN-SUFFIX,zmz002.com,🍂 Domestic
// Accelerate direct sites
DOMAIN-KEYWORD,torrent,🍂 Domestic
URL-REGEX,(Subject|HELO|SMTP),🍂 Domestic
URL-REGEX,(api|ps|sv|offnavi|newvector|ulog\.imap|newloc)(\.map|)\.(baidu|n\.shifen)\.com,🍂 Domestic
URL-REGEX,(.+\.|^)(360|so|qihoo|360safe|qhimg|360totalsecurity|yunpan)\.(cn|com),🍂 Domestic
URL-REGEX,(ed2k|torrent|\.torrent|peer_id=|announce|info_hash|get_peers|find_node|BitTorrent|announce_peer|protocol|announce\.php\?passkey=|magnet:|xunlei|sandai|Thunder|XLLiveUD|bt_key),🍂 Domestic
URL-REGEX,/^.*@(guerrillamail\.(info|biz|com|de|net|org)|guerrillamailblock\.com|sharklasers\.com|grr\.la|pokemail\.net|spam4\.me|(mail\.)?bccto\.me|chacuo\.net|027168\.com)$/i,🍂 Domestic
// LAN,debugging rules should place above this line
DOMAIN-SUFFIX,local,DIRECT
IP-CIDR,10.0.0.0/8,DIRECT
IP-CIDR,100.64.0.0/10,DIRECT
IP-CIDR,127.0.0.0/8,DIRECT
IP-CIDR,172.16.0.0/12,DIRECT
IP-CIDR,192.168.0.0/16,DIRECT

@ -0,0 +1,818 @@
# PROXY
// Client
PROCESS-NAME,Backup and Sync,🍃 Proxy
PROCESS-NAME,Day One,🍃 Proxy
PROCESS-NAME,Dropbox,🍃 Proxy
PROCESS-NAME,LINE,🍃 Proxy
PROCESS-NAME,node-webkit,🍃 Proxy
PROCESS-NAME,Resilio Sync,🍃 Proxy
PROCESS-NAME,Spotify,🍃 Proxy
PROCESS-NAME,Tweetbot,🍃 Proxy
PROCESS-NAME,Twitter,🍃 Proxy
PROCESS-NAME,Twitterrific,🍃 Proxy
PROCESS-NAME,viu,🍃 Proxy
// UA
USER-AGENT,%E7%BA%BD%E7%BA%A6%E6%97%B6%E6%8A%A5*,🍃 Proxy
USER-AGENT,AwemeI18n*,🍃 Proxy
USER-AGENT,Coinbase*,🍃 Proxy
USER-AGENT,Instagram*,🍃 Proxy
USER-AGENT,Resilio Sync*,🍃 Proxy
USER-AGENT,SoundCloud*,🍃 Proxy
USER-AGENT,viu*,🍃 Proxy
USER-AGENT,WeMusic*,🍃 Proxy
// BBC
USER-AGENT,BBCiPlayer*,🍃 Proxy
DOMAIN-KEYWORD,co.uk,🍃 Proxy
DOMAIN-KEYWORD,uk-live,🍃 Proxy
DOMAIN-SUFFIX,bbc.co,🍃 Proxy
DOMAIN-SUFFIX,bbc.com,🍃 Proxy
// CHOCO TV
USER-AGENT,TwDramas,🍃 Proxy
DOMAIN-SUFFIX,chocotv.com.tw,🍃 Proxy
// Epicgames
DOMAIN-KEYWORD,epicgames,🍃 Proxy
DOMAIN-SUFFIX,helpshift.com,🍃 Proxy
// Hulu
DOMAIN-SUFFIX,hulu.com,🍃 Proxy
// Line
DOMAIN-SUFFIX,lin.ee,🍃 Proxy
DOMAIN-SUFFIX,line.me,🍃 Proxy
DOMAIN-SUFFIX,line.naver.jp,🍃 Proxy
DOMAIN-SUFFIX,line-apps.com,🍃 Proxy
DOMAIN-SUFFIX,line-cdn.net,🍃 Proxy
DOMAIN-SUFFIX,line-scdn.net,🍃 Proxy
DOMAIN-SUFFIX,nhncorp.jp,🍃 Proxy
// MytvSUPER
DOMAIN-KEYWORD,nowtv100,🍃 Proxy
DOMAIN-KEYWORD,rthklive,🍃 Proxy
DOMAIN-SUFFIX,mytvsuper.com,🍃 Proxy
DOMAIN-SUFFIX,tvb.com,🍃 Proxy
// Microsoft
USER-AGENT,OneDrive*,🍃 Proxy
DOMAIN-KEYWORD,microsoft,🍃 Proxy
DOMAIN-SUFFIX,hotmail.com,🍃 Proxy
DOMAIN-SUFFIX,live.com,🍃 Proxy
DOMAIN-SUFFIX,live.net,🍃 Proxy
DOMAIN-SUFFIX,msn.com,🍃 Proxy
DOMAIN-SUFFIX,office.com,🍃 Proxy
DOMAIN-SUFFIX,office.net,🍃 Proxy
DOMAIN-SUFFIX,outlook.com,🍃 Proxy
// Netflix
DOMAIN-SUFFIX,netflix.com,🍃 Proxy
DOMAIN-SUFFIX,netflix.net,🍃 Proxy
DOMAIN-SUFFIX,nflxext.com,🍃 Proxy
DOMAIN-SUFFIX,nflximg.com,🍃 Proxy
DOMAIN-SUFFIX,nflximg.net,🍃 Proxy
DOMAIN-SUFFIX,nflxvideo.net,🍃 Proxy
// Spark
DOMAIN-SUFFIX,api.amplitude.com,🍃 Proxy
DOMAIN-SUFFIX,app.smartmailcloud.com,🍃 Proxy
DOMAIN-SUFFIX,gate.hockeyapp.net,🍃 Proxy
DOMAIN-SUFFIX,smartmailcloud.com,🍃 Proxy
// Steam
DOMAIN-SUFFIX,fanatical.com,🍃 Proxy
DOMAIN-SUFFIX,humblebundle.com,🍃 Proxy
DOMAIN-SUFFIX,steamcommunity.com,🍃 Proxy
DOMAIN-SUFFIX,steampowered.com,🍃 Proxy
DOMAIN-SUFFIX,steamstatic.com,🍃 Proxy
// WeMusic
DOMAIN-KEYWORD,joox,🍃 Proxy
// Top blocked sites
DOMAIN-SUFFIX,2o7.net,🍃 Proxy
DOMAIN-SUFFIX,4everProxy.com,🍃 Proxy
DOMAIN-SUFFIX,4shared.com,🍃 Proxy
DOMAIN-SUFFIX,4sqi.net,🍃 Proxy
DOMAIN-SUFFIX,9to5mac.com,🍃 Proxy
DOMAIN-SUFFIX,abpchina.org,🍃 Proxy
DOMAIN-SUFFIX,accountkit.com,🍃 Proxy
DOMAIN-SUFFIX,adblockplus.org,🍃 Proxy
DOMAIN-SUFFIX,adobe.com,🍃 Proxy
DOMAIN-SUFFIX,adobedtm.com,🍃 Proxy
DOMAIN-SUFFIX,aerisapi.com,🍃 Proxy
DOMAIN-SUFFIX,akamaihd.net,🍃 Proxy
DOMAIN-SUFFIX,alibaba.com,🍃 Proxy
DOMAIN-SUFFIX,alibabacloud.com,🍃 Proxy
DOMAIN-SUFFIX,alfredapp.com,🍃 Proxy
DOMAIN-SUFFIX,allconnected.co,🍃 Proxy
DOMAIN-SUFFIX,amazon.com,🍃 Proxy
DOMAIN-SUFFIX,amazonaws.com,🍃 Proxy
DOMAIN-SUFFIX,ampproject.com,🍃 Proxy
DOMAIN-SUFFIX,ampproject.net,🍃 Proxy
DOMAIN-SUFFIX,ampproject.org,🍃 Proxy
DOMAIN-SUFFIX,ancsconf.org,🍃 Proxy
DOMAIN-SUFFIX,android.com,🍃 Proxy
DOMAIN-SUFFIX,androidify.com,🍃 Proxy
DOMAIN-SUFFIX,android-x86.org,🍃 Proxy
DOMAIN-SUFFIX,angularjs.org,🍃 Proxy
DOMAIN-SUFFIX,anthonycalzadilla.com,🍃 Proxy
DOMAIN-SUFFIX,aol.com,🍃 Proxy
DOMAIN-SUFFIX,aolcdn.com,🍃 Proxy
DOMAIN-SUFFIX,api.mixpanel.com,🍃 Proxy
DOMAIN-SUFFIX,api.tiktokv.com,🍃 Proxy
DOMAIN-SUFFIX,api.urbandictionary.com,🍃 Proxy
DOMAIN-SUFFIX,apigee.com,🍃 Proxy
DOMAIN-SUFFIX,apk-dl.com,🍃 Proxy
DOMAIN-SUFFIX,apkpure.com,🍃 Proxy
DOMAIN-SUFFIX,appdownloader.net,🍃 Proxy
DOMAIN-SUFFIX,apple-dns.net,🍃 Proxy
DOMAIN-SUFFIX,app-measurement.com,🍃 Proxy
DOMAIN-SUFFIX,appshopper.com,🍃 Proxy
DOMAIN-SUFFIX,arcgis.com,🍃 Proxy
DOMAIN-SUFFIX,archive.is,🍃 Proxy
DOMAIN-SUFFIX,archive.org,🍃 Proxy
DOMAIN-SUFFIX,archives.gov,🍃 Proxy
DOMAIN-SUFFIX,armorgames.com,🍃 Proxy
DOMAIN-SUFFIX,aspnetcdn.com,🍃 Proxy
DOMAIN-SUFFIX,async.be,🍃 Proxy
DOMAIN-SUFFIX,att.com,🍃 Proxy
DOMAIN-SUFFIX,avgle.com,🍃 Proxy
DOMAIN-SUFFIX,awsstatic.com,🍃 Proxy
DOMAIN-SUFFIX,azureedge.net,🍃 Proxy
DOMAIN-SUFFIX,azurewebsites.net,🍃 Proxy
DOMAIN-SUFFIX,badoo.com,🍃 Proxy
DOMAIN-SUFFIX,bandisoft.com,🍃 Proxy
DOMAIN-SUFFIX,bbtoystore.com,🍃 Proxy
DOMAIN-SUFFIX,betvictor.com,🍃 Proxy
DOMAIN-SUFFIX,bigsound.org,🍃 Proxy
DOMAIN-SUFFIX,bing.com,🍃 Proxy
DOMAIN-SUFFIX,bing.net,🍃 Proxy
DOMAIN-SUFFIX,bintray.com,🍃 Proxy
DOMAIN-SUFFIX,bit.com,🍃 Proxy
DOMAIN-SUFFIX,bit.do,🍃 Proxy
DOMAIN-SUFFIX,bit.ly,🍃 Proxy
DOMAIN-SUFFIX,bitbucket.org,🍃 Proxy
DOMAIN-SUFFIX,bitcointalk.org,🍃 Proxy
DOMAIN-SUFFIX,bitshare.com,🍃 Proxy
DOMAIN-SUFFIX,bkrtx.com,🍃 Proxy
DOMAIN-SUFFIX,blizzard.com,🍃 Proxy
DOMAIN-SUFFIX,blog.com,🍃 Proxy
DOMAIN-SUFFIX,blogcdn.com,🍃 Proxy
DOMAIN-SUFFIX,blogger.com,🍃 Proxy
DOMAIN-SUFFIX,bloglovin.com,🍃 Proxy
DOMAIN-SUFFIX,blogsmithmedia.com,🍃 Proxy
DOMAIN-SUFFIX,blogspot.hk,🍃 Proxy
DOMAIN-SUFFIX,bloomberg.cn,🍃 Proxy
DOMAIN-SUFFIX,bloomberg.com,🍃 Proxy
DOMAIN-SUFFIX,books.com.tw,🍃 Proxy
DOMAIN-SUFFIX,boomtrain.com,🍃 Proxy
DOMAIN-SUFFIX,box.com,🍃 Proxy
DOMAIN-SUFFIX,box.net,🍃 Proxy
DOMAIN-SUFFIX,boxun.com,🍃 Proxy
DOMAIN-SUFFIX,cachefly.net,🍃 Proxy
DOMAIN-SUFFIX,cbc.ca,🍃 Proxy
DOMAIN-SUFFIX,cdn.segment.com,🍃 Proxy
DOMAIN-SUFFIX,cdnst.net,🍃 Proxy
DOMAIN-SUFFIX,celestrak.com,🍃 Proxy
DOMAIN-SUFFIX,census.gov,🍃 Proxy
DOMAIN-SUFFIX,certificate-transparency.org,🍃 Proxy
DOMAIN-SUFFIX,chinatimes.com,🍃 Proxy
DOMAIN-SUFFIX,chrome.com,🍃 Proxy
DOMAIN-SUFFIX,chromecast.com,🍃 Proxy
DOMAIN-SUFFIX,chromercise.com,🍃 Proxy
DOMAIN-SUFFIX,chromestatus.com,🍃 Proxy
DOMAIN-SUFFIX,chromium.org,🍃 Proxy
DOMAIN-SUFFIX,cl.ly,🍃 Proxy
DOMAIN-SUFFIX,cloudflare.com,🍃 Proxy
DOMAIN-SUFFIX,cloudfront.net,🍃 Proxy
DOMAIN-SUFFIX,cloudgarage.jp,🍃 Proxy
DOMAIN-SUFFIX,cloudmagic.com,🍃 Proxy
DOMAIN-SUFFIX,cmail19.com,🍃 Proxy
DOMAIN-SUFFIX,cnet.com,🍃 Proxy
DOMAIN-SUFFIX,cnn.com,🍃 Proxy
DOMAIN-SUFFIX,cocoapods.org,🍃 Proxy
DOMAIN-SUFFIX,comodoca.com,🍃 Proxy
DOMAIN-SUFFIX,content.office.net,🍃 Proxy
DOMAIN-SUFFIX,culturedcode.com ,🍃 Proxy
DOMAIN-SUFFIX,cygames.jp ,🍃 Proxy
DOMAIN-SUFFIX,d.pr,🍃 Proxy
DOMAIN-SUFFIX,danilo.to,🍃 Proxy
DOMAIN-SUFFIX,daolan.net,🍃 Proxy
DOMAIN-SUFFIX,data-vocabulary.org,🍃 Proxy
DOMAIN-SUFFIX,dayone.me,🍃 Proxy
DOMAIN-SUFFIX,db.tt,🍃 Proxy
DOMAIN-SUFFIX,dcmilitary.com,🍃 Proxy
DOMAIN-SUFFIX,deja.com,🍃 Proxy
DOMAIN-SUFFIX,demdex.net,🍃 Proxy
DOMAIN-SUFFIX,deskconnect.com,🍃 Proxy
DOMAIN-SUFFIX,digisfera.com,🍃 Proxy
DOMAIN-SUFFIX,digitaltrends.com,🍃 Proxy
DOMAIN-SUFFIX,disconnect.me,🍃 Proxy
DOMAIN-SUFFIX,disq.us,🍃 Proxy
DOMAIN-SUFFIX,disqus.com,🍃 Proxy
DOMAIN-SUFFIX,disquscdn.com,🍃 Proxy
DOMAIN-SUFFIX,dmm.co.jp,🍃 Proxy
DOMAIN-SUFFIX,dnsimple.com,🍃 Proxy
DOMAIN-SUFFIX,docker.com,🍃 Proxy
DOMAIN-SUFFIX,doub.io,🍃 Proxy
DOMAIN-SUFFIX,dribbble.com,🍃 Proxy
DOMAIN-SUFFIX,droplr.com,🍃 Proxy
DOMAIN-SUFFIX,duckduckgo.com,🍃 Proxy
DOMAIN-SUFFIX,dueapp.com,🍃 Proxy
DOMAIN-SUFFIX,dw.com,🍃 Proxy
DOMAIN-SUFFIX,easybib.com,🍃 Proxy
DOMAIN-SUFFIX,economist.com,🍃 Proxy
DOMAIN-SUFFIX,edgecastcdn.net,🍃 Proxy
DOMAIN-SUFFIX,edgekey.net,🍃 Proxy
DOMAIN-SUFFIX,edgesuite.net,🍃 Proxy
DOMAIN-SUFFIX,engadget.com,🍃 Proxy
DOMAIN-SUFFIX,entrust.net,🍃 Proxy
DOMAIN-SUFFIX,eurekavpt.com,🍃 Proxy
DOMAIN-SUFFIX,evernote.com,🍃 Proxy
DOMAIN-SUFFIX,extmatrix.com,🍃 Proxy
DOMAIN-SUFFIX,eyny.com,🍃 Proxy
DOMAIN-SUFFIX,fabric.io,🍃 Proxy
DOMAIN-SUFFIX,fast.com,🍃 Proxy
DOMAIN-SUFFIX,fastly.net,🍃 Proxy
DOMAIN-SUFFIX,fastmail.com,🍃 Proxy
DOMAIN-SUFFIX,fc2.com,🍃 Proxy
DOMAIN-SUFFIX,feedburner.com,🍃 Proxy
DOMAIN-SUFFIX,feedly.com,🍃 Proxy
DOMAIN-SUFFIX,feedsportal.com,🍃 Proxy
DOMAIN-SUFFIX,fiftythree.com,🍃 Proxy
DOMAIN-SUFFIX,firebaseio.com,🍃 Proxy
DOMAIN-SUFFIX,flexibits.com,🍃 Proxy
DOMAIN-SUFFIX,flickr.com,🍃 Proxy
DOMAIN-SUFFIX,flipboard.com,🍃 Proxy
DOMAIN-SUFFIX,flipkart.com,🍃 Proxy
DOMAIN-SUFFIX,flitto.com,🍃 Proxy
DOMAIN-SUFFIX,flurry.com,🍃 Proxy
DOMAIN-SUFFIX,freeopenProxy.com,🍃 Proxy
DOMAIN-SUFFIX,fullstory.com,🍃 Proxy
DOMAIN-SUFFIX,fzlm.net,🍃 Proxy
DOMAIN-SUFFIX,g.co,🍃 Proxy
DOMAIN-SUFFIX,gabia.net,🍃 Proxy
DOMAIN-SUFFIX,garena.com,🍃 Proxy
DOMAIN-SUFFIX,gameloft.com,🍃 Proxy
DOMAIN-SUFFIX,geni.us,🍃 Proxy
DOMAIN-SUFFIX,get.how,🍃 Proxy
DOMAIN-SUFFIX,getcloudapp.com,🍃 Proxy
DOMAIN-SUFFIX,getfoxyProxy.org,🍃 Proxy
DOMAIN-SUFFIX,getlantern.org,🍃 Proxy
DOMAIN-SUFFIX,getmdl.io,🍃 Proxy
DOMAIN-SUFFIX,getpricetag.com,🍃 Proxy
DOMAIN-SUFFIX,gfw.press,🍃 Proxy
DOMAIN-SUFFIX,gfx.ms,🍃 Proxy
DOMAIN-SUFFIX,ggpht.com,🍃 Proxy
DOMAIN-SUFFIX,ghostnoteapp.com,🍃 Proxy
DOMAIN-SUFFIX,git.io,🍃 Proxy
DOMAIN-SUFFIX,gitbook.com,🍃 Proxy
DOMAIN-SUFFIX,globalsign.com,🍃 Proxy
DOMAIN-SUFFIX,gmocloud.com,🍃 Proxy
DOMAIN-SUFFIX,gmodules.com,🍃 Proxy
DOMAIN-SUFFIX,go.com,🍃 Proxy
DOMAIN-SUFFIX,go.jp,🍃 Proxy
DOMAIN-SUFFIX,godaddy.com,🍃 Proxy
DOMAIN-SUFFIX,golang.org,🍃 Proxy
DOMAIN-SUFFIX,gongm.in,🍃 Proxy
DOMAIN-SUFFIX,goo.gl,🍃 Proxy
DOMAIN-SUFFIX,goodreaders.com,🍃 Proxy
DOMAIN-SUFFIX,goodreads.com,🍃 Proxy
DOMAIN-SUFFIX,gravatar.com,🍃 Proxy
DOMAIN-SUFFIX,gstatic.cn,🍃 Proxy
DOMAIN-SUFFIX,gstatic.com,🍃 Proxy
DOMAIN-SUFFIX,gunsamerica.com,🍃 Proxy
DOMAIN-SUFFIX,gvt0.com,🍃 Proxy
DOMAIN-SUFFIX,gvt1.com,🍃 Proxy
DOMAIN-SUFFIX,helpshift.com,🍃 Proxy
DOMAIN-SUFFIX,hinet.net,🍃 Proxy
DOMAIN-SUFFIX,hockeyapp.net,🍃 Proxy
DOMAIN-SUFFIX,homedepot.com,🍃 Proxy
DOMAIN-SUFFIX,hootsuite.com,🍃 Proxy
DOMAIN-SUFFIX,howtoforge.com,🍃 Proxy
DOMAIN-SUFFIX,iam.soy,🍃 Proxy
DOMAIN-SUFFIX,icoco.com,🍃 Proxy
DOMAIN-SUFFIX,icons8.com,🍃 Proxy
DOMAIN-SUFFIX,ift.tt,🍃 Proxy
DOMAIN-SUFFIX,ifttt.com,🍃 Proxy
DOMAIN-SUFFIX,imageshack.us,🍃 Proxy
DOMAIN-SUFFIX,img.ly,🍃 Proxy
DOMAIN-SUFFIX,imgur.com,🍃 Proxy
DOMAIN-SUFFIX,imore.com,🍃 Proxy
DOMAIN-SUFFIX,ingress.com ,🍃 Proxy
DOMAIN-SUFFIX,insder.co,🍃 Proxy
DOMAIN-SUFFIX,instapaper.com,🍃 Proxy
DOMAIN-SUFFIX,instructables.com,🍃 Proxy
DOMAIN-SUFFIX,io.io,🍃 Proxy
DOMAIN-SUFFIX,ip.sb,🍃 Proxy
DOMAIN-SUFFIX,ipaddress.com,🍃 Proxy
DOMAIN-SUFFIX,ipn.li,🍃 Proxy
DOMAIN-SUFFIX,is.gd,🍃 Proxy
DOMAIN-SUFFIX,ishowsapp.com,🍃 Proxy
DOMAIN-SUFFIX,issuu.com,🍃 Proxy
DOMAIN-SUFFIX,itgonglun.com,🍃 Proxy
DOMAIN-SUFFIX,itun.es,🍃 Proxy
DOMAIN-SUFFIX,ixquick.com,🍃 Proxy
DOMAIN-SUFFIX,j.mp,🍃 Proxy
DOMAIN-SUFFIX,javbus.com,🍃 Proxy
DOMAIN-SUFFIX,js.revsci.net,🍃 Proxy
DOMAIN-SUFFIX,jshint.com,🍃 Proxy
DOMAIN-SUFFIX,jtvnw.net,🍃 Proxy
DOMAIN-SUFFIX,justgetflux.com,🍃 Proxy
DOMAIN-SUFFIX,kakao.co.kr,🍃 Proxy
DOMAIN-SUFFIX,kakao.com,🍃 Proxy
DOMAIN-SUFFIX,kakaocdn.net,🍃 Proxy
DOMAIN-SUFFIX,kat.cr,🍃 Proxy
DOMAIN-SUFFIX,kenengba.com,🍃 Proxy
DOMAIN-SUFFIX,kik.com,🍃 Proxy
DOMAIN-SUFFIX,klip.me,🍃 Proxy
DOMAIN-SUFFIX,leancloud.com,🍃 Proxy
DOMAIN-SUFFIX,leetcode.com,🍃 Proxy
DOMAIN-SUFFIX,lhie1.com,🍃 Proxy
DOMAIN-SUFFIX,libsyn.com,🍃 Proxy
DOMAIN-SUFFIX,licdn.com,🍃 Proxy
DOMAIN-SUFFIX,lightboxcdn.com,🍃 Proxy
DOMAIN-SUFFIX,like.com,🍃 Proxy
DOMAIN-SUFFIX,linkedin.com,🍃 Proxy
DOMAIN-SUFFIX,linode.com,🍃 Proxy
DOMAIN-SUFFIX,lithium.com,🍃 Proxy
DOMAIN-SUFFIX,littlehj.com,🍃 Proxy
DOMAIN-SUFFIX,livefilestore.com,🍃 Proxy
DOMAIN-SUFFIX,llnwd.net,🍃 Proxy
DOMAIN-SUFFIX,localnetwork.uop,🍃 Proxy
DOMAIN-SUFFIX,logmein.com,🍃 Proxy
DOMAIN-SUFFIX,macid.co,🍃 Proxy
DOMAIN-SUFFIX,macromedia.com,🍃 Proxy
DOMAIN-SUFFIX,macrumors.com,🍃 Proxy
DOMAIN-SUFFIX,manhuaren.com,🍃 Proxy
DOMAIN-SUFFIX,marketwatch.com,🍃 Proxy
DOMAIN-SUFFIX,mashable.com,🍃 Proxy
DOMAIN-SUFFIX,mathjax.org,🍃 Proxy
DOMAIN-SUFFIX,medium.com,🍃 Proxy
DOMAIN-SUFFIX,mega.co.nz,🍃 Proxy
DOMAIN-SUFFIX,mega.nz,🍃 Proxy
DOMAIN-SUFFIX,megaupload.com,🍃 Proxy
DOMAIN-SUFFIX,microsofttranslator.com,🍃 Proxy
DOMAIN-SUFFIX,mindnode.com,🍃 Proxy
DOMAIN-SUFFIX,mlssoccer.com,🍃 Proxy
DOMAIN-SUFFIX,mobile01.com,🍃 Proxy
DOMAIN-SUFFIX,modmyi.com,🍃 Proxy
DOMAIN-SUFFIX,moves-export.com,🍃 Proxy
DOMAIN-SUFFIX,mp3buscador.com,🍃 Proxy
DOMAIN-SUFFIX,msedge.net,🍃 Proxy
DOMAIN-SUFFIX,mycnnews.com,🍃 Proxy
DOMAIN-SUFFIX,myfontastic.com,🍃 Proxy
DOMAIN-SUFFIX,name.com,🍃 Proxy
DOMAIN-SUFFIX,nasa.gov,🍃 Proxy
DOMAIN-SUFFIX,ndr.de,🍃 Proxy
DOMAIN-SUFFIX,netdna-cdn.com,🍃 Proxy
DOMAIN-SUFFIX,newipnow.com,🍃 Proxy
DOMAIN-SUFFIX,nextmedia.com,🍃 Proxy
DOMAIN-SUFFIX,nih.gov,🍃 Proxy
DOMAIN-SUFFIX,nintendo.com,🍃 Proxy
DOMAIN-SUFFIX,nintendo.net,🍃 Proxy
DOMAIN-SUFFIX,notion.so,🍃 Proxy
DOMAIN-SUFFIX,novafile.com,🍃 Proxy
DOMAIN-SUFFIX,nrk.no,🍃 Proxy
DOMAIN-SUFFIX,nsstatic.net,🍃 Proxy
DOMAIN-SUFFIX,nssurge.com,🍃 Proxy
DOMAIN-SUFFIX,nyt.com,🍃 Proxy
DOMAIN-SUFFIX,nytimes.com,🍃 Proxy
DOMAIN-SUFFIX,nytimg.com,🍃 Proxy
DOMAIN-SUFFIX,nytstyle.com,🍃 Proxy
DOMAIN-SUFFIX,office365.com,🍃 Proxy
DOMAIN-SUFFIX,omnigroup.com,🍃 Proxy
DOMAIN-SUFFIX,onedrive.com,🍃 Proxy
DOMAIN-SUFFIX,onedrive.live.com,🍃 Proxy
DOMAIN-SUFFIX,onenote.com,🍃 Proxy
DOMAIN-SUFFIX,ooyala.com,🍃 Proxy
DOMAIN-SUFFIX,openvpn.net,🍃 Proxy
DOMAIN-SUFFIX,openwrt.org,🍃 Proxy
DOMAIN-SUFFIX,optimizely.com,🍃 Proxy
DOMAIN-SUFFIX,orkut.com,🍃 Proxy
DOMAIN-SUFFIX,osha.gov,🍃 Proxy
DOMAIN-SUFFIX,osxdaily.com,🍃 Proxy
DOMAIN-SUFFIX,ow.ly,🍃 Proxy
DOMAIN-SUFFIX,paddle.com,🍃 Proxy
DOMAIN-SUFFIX,paddleapi.com,🍃 Proxy
DOMAIN-SUFFIX,pandora.com,🍃 Proxy
DOMAIN-SUFFIX,panoramio.com,🍃 Proxy
DOMAIN-SUFFIX,parallels.com,🍃 Proxy
DOMAIN-SUFFIX,parse.com,🍃 Proxy
DOMAIN-SUFFIX,pdfexpert.com,🍃 Proxy
DOMAIN-SUFFIX,periscope.tv,🍃 Proxy
DOMAIN-SUFFIX,piaotian.net,🍃 Proxy
DOMAIN-SUFFIX,picacomic.com,🍃 Proxy
DOMAIN-SUFFIX,picasaweb.com,🍃 Proxy
DOMAIN-SUFFIX,pinboard.in,🍃 Proxy
DOMAIN-SUFFIX,ping.pe,🍃 Proxy
DOMAIN-SUFFIX,pinterest.com,🍃 Proxy
DOMAIN-SUFFIX,pixelmator.com,🍃 Proxy
DOMAIN-SUFFIX,pixiv.net,🍃 Proxy
DOMAIN-SUFFIX,pixnet.net,🍃 Proxy
DOMAIN-SUFFIX,playpcesor.com,🍃 Proxy
DOMAIN-SUFFIX,playstation.com,🍃 Proxy
DOMAIN-SUFFIX,playstation.com.hk,🍃 Proxy
DOMAIN-SUFFIX,playstation.net,🍃 Proxy
DOMAIN-SUFFIX,playstationnetwork.com,🍃 Proxy
DOMAIN-SUFFIX,pokemon.com,🍃 Proxy
DOMAIN-SUFFIX,polymer-project.org,🍃 Proxy
DOMAIN-SUFFIX,popo.tw,🍃 Proxy
DOMAIN-SUFFIX,potato.im,🍃 Proxy
DOMAIN-SUFFIX,prfct.co,🍃 Proxy
DOMAIN-SUFFIX,proxfree.com,🍃 Proxy
DOMAIN-SUFFIX,psiphon3.com,🍃 Proxy
DOMAIN-SUFFIX,ptt.cc,🍃 Proxy
DOMAIN-SUFFIX,pubu.com.tw,🍃 Proxy
DOMAIN-SUFFIX,puffinbrowser.com,🍃 Proxy
DOMAIN-SUFFIX,pushbullet.com,🍃 Proxy
DOMAIN-SUFFIX,pushwoosh.com,🍃 Proxy
DOMAIN-SUFFIX,pximg.net,🍃 Proxy
DOMAIN-SUFFIX,quora.com,🍃 Proxy
DOMAIN-SUFFIX,quoracdn.net,🍃 Proxy
DOMAIN-SUFFIX,readingtimes.com.tw,🍃 Proxy
DOMAIN-SUFFIX,readmoo.com,🍃 Proxy
DOMAIN-SUFFIX,recaptcha.net,🍃 Proxy
DOMAIN-SUFFIX,reddit.com,🍃 Proxy
DOMAIN-SUFFIX,redditmedia.com,🍃 Proxy
DOMAIN-SUFFIX,reuters.com,🍃 Proxy
DOMAIN-SUFFIX,rfi.fr,🍃 Proxy
DOMAIN-SUFFIX,rileyguide.com,🍃 Proxy
DOMAIN-SUFFIX,rime.im,🍃 Proxy
DOMAIN-SUFFIX,rsf.org,🍃 Proxy
DOMAIN-SUFFIX,sciencedaily.com,🍃 Proxy
DOMAIN-SUFFIX,sciencemag.org,🍃 Proxy
DOMAIN-SUFFIX,scribd.com,🍃 Proxy
DOMAIN-SUFFIX,search.com,🍃 Proxy
DOMAIN-SUFFIX,servebom.com,🍃 Proxy
DOMAIN-SUFFIX,sfx.ms,🍃 Proxy
DOMAIN-SUFFIX,shadowsocks.org,🍃 Proxy
DOMAIN-SUFFIX,shadowverse.jp,🍃 Proxy
DOMAIN-SUFFIX,sharethis.com,🍃 Proxy
DOMAIN-SUFFIX,shazam.com,🍃 Proxy
DOMAIN-SUFFIX,shutterstock.com,🍃 Proxy
DOMAIN-SUFFIX,sidelinesnews.com,🍃 Proxy
DOMAIN-SUFFIX,simp.ly,🍃 Proxy
DOMAIN-SUFFIX,simplenote.com,🍃 Proxy
DOMAIN-SUFFIX,sketchappsources.com,🍃 Proxy
DOMAIN-SUFFIX,skype.com,🍃 Proxy
DOMAIN-SUFFIX,slack.com,🍃 Proxy
DOMAIN-SUFFIX,slack-edge.com,🍃 Proxy
DOMAIN-SUFFIX,slack-msgs.com,🍃 Proxy
DOMAIN-SUFFIX,slideshare.net,🍃 Proxy
DOMAIN-SUFFIX,smartdnsproxy.com,🍃 Proxy
DOMAIN-SUFFIX,smh.com.au,🍃 Proxy
DOMAIN-SUFFIX,snapchat.com,🍃 Proxy
DOMAIN-SUFFIX,sndcdn.com,🍃 Proxy
DOMAIN-SUFFIX,sockslist.net,🍃 Proxy
DOMAIN-SUFFIX,sony.com,🍃 Proxy
DOMAIN-SUFFIX,sony.com.hk,🍃 Proxy
DOMAIN-SUFFIX,sonyentertainmentnetwork.com,🍃 Proxy
DOMAIN-SUFFIX,soundcloud.com,🍃 Proxy
DOMAIN-SUFFIX,sourceforge.net,🍃 Proxy
DOMAIN-SUFFIX,sowers.org.hk,🍃 Proxy
DOMAIN-SUFFIX,speedsmart.net,🍃 Proxy
DOMAIN-SUFFIX,spike.com,🍃 Proxy
DOMAIN-SUFFIX,squarespace.com,🍃 Proxy
DOMAIN-SUFFIX,ssa.gov,🍃 Proxy
DOMAIN-SUFFIX,sstatic.net,🍃 Proxy
DOMAIN-SUFFIX,st.luluku.pw,🍃 Proxy
DOMAIN-SUFFIX,stackoverflow.com,🍃 Proxy
DOMAIN-SUFFIX,starp2p.com,🍃 Proxy
DOMAIN-SUFFIX,startpage.com,🍃 Proxy
DOMAIN-SUFFIX,state.gov,🍃 Proxy
DOMAIN-SUFFIX,staticflickr.com,🍃 Proxy
DOMAIN-SUFFIX,storify.com,🍃 Proxy
DOMAIN-SUFFIX,stumbleupon.com,🍃 Proxy
DOMAIN-SUFFIX,sugarsync.com,🍃 Proxy
DOMAIN-SUFFIX,supermariorun.com,🍃 Proxy
DOMAIN-SUFFIX,surfeasy.com.au,🍃 Proxy
DOMAIN-SUFFIX,surge.run,🍃 Proxy
DOMAIN-SUFFIX,surrenderat20.net,🍃 Proxy
DOMAIN-SUFFIX,sydneytoday.com,🍃 Proxy
DOMAIN-SUFFIX,symauth.com,🍃 Proxy
DOMAIN-SUFFIX,symcb.com,🍃 Proxy
DOMAIN-SUFFIX,symcd.com,🍃 Proxy
DOMAIN-SUFFIX,t.me,🍃 Proxy
DOMAIN-SUFFIX,t66y.com,🍃 Proxy
DOMAIN-SUFFIX,tablesgenerator.com,🍃 Proxy
DOMAIN-SUFFIX,tabtter.jp,🍃 Proxy
DOMAIN-SUFFIX,talk853.com,🍃 Proxy
DOMAIN-SUFFIX,talkboxapp.com,🍃 Proxy
DOMAIN-SUFFIX,talkonly.net,🍃 Proxy
DOMAIN-SUFFIX,tapbots.com,🍃 Proxy
DOMAIN-SUFFIX,tapbots.net,🍃 Proxy
DOMAIN-SUFFIX,tdesktop.com,🍃 Proxy
DOMAIN-SUFFIX,techcrunch.com,🍃 Proxy
DOMAIN-SUFFIX,technorati.com,🍃 Proxy
DOMAIN-SUFFIX,techsmith.com,🍃 Proxy
DOMAIN-SUFFIX,teddysun.com,🍃 Proxy
DOMAIN-SUFFIX,telegra.ph,🍃 Proxy
DOMAIN-SUFFIX,textnow.me,🍃 Proxy
DOMAIN-SUFFIX,thebobs.com,🍃 Proxy
DOMAIN-SUFFIX,theinitium.com,🍃 Proxy
DOMAIN-SUFFIX,thepiratebay.org,🍃 Proxy
DOMAIN-SUFFIX,theverge.com,🍃 Proxy
DOMAIN-SUFFIX,thewgo.org,🍃 Proxy
DOMAIN-SUFFIX,tiltbrush.com,🍃 Proxy
DOMAIN-SUFFIX,time.com,🍃 Proxy
DOMAIN-SUFFIX,timeinc.net,🍃 Proxy
DOMAIN-SUFFIX,tinder.com,🍃 Proxy
DOMAIN-SUFFIX,tiny.cc,🍃 Proxy
DOMAIN-SUFFIX,tinychat.com,🍃 Proxy
DOMAIN-SUFFIX,tinypic.com,🍃 Proxy
DOMAIN-SUFFIX,tmblr.co,🍃 Proxy
DOMAIN-SUFFIX,todoist.com,🍃 Proxy
DOMAIN-SUFFIX,togetter.com,🍃 Proxy
DOMAIN-SUFFIX,tokyocn.com,🍃 Proxy
DOMAIN-SUFFIX,tomshardware.com,🍃 Proxy
DOMAIN-SUFFIX,torcn.com,🍃 Proxy
DOMAIN-SUFFIX,torrentprivacy.com,🍃 Proxy
DOMAIN-SUFFIX,torrentproject.se,🍃 Proxy
DOMAIN-SUFFIX,torrentz.eu,🍃 Proxy
DOMAIN-SUFFIX,traffichaus.com,🍃 Proxy
DOMAIN-SUFFIX,trakt.tv,🍃 Proxy
DOMAIN-SUFFIX,transparency.org,🍃 Proxy
DOMAIN-SUFFIX,trello.com,🍃 Proxy
DOMAIN-SUFFIX,trendsmap.com,🍃 Proxy
DOMAIN-SUFFIX,trulyergonomic.com,🍃 Proxy
DOMAIN-SUFFIX,trustasiassl.com,🍃 Proxy
DOMAIN-SUFFIX,tt-rss.org,🍃 Proxy
DOMAIN-SUFFIX,ttvnw.net,🍃 Proxy
DOMAIN-SUFFIX,tumblr.co,🍃 Proxy
DOMAIN-SUFFIX,tumblr.com,🍃 Proxy
DOMAIN-SUFFIX,turbobit.net,🍃 Proxy
DOMAIN-SUFFIX,tv.com,🍃 Proxy
DOMAIN-SUFFIX,tweetdeck.com,🍃 Proxy
DOMAIN-SUFFIX,tweetmarker.net,🍃 Proxy
DOMAIN-SUFFIX,twimg.co,🍃 Proxy
DOMAIN-SUFFIX,twitch.tv,🍃 Proxy
DOMAIN-SUFFIX,twitthat.com,🍃 Proxy
DOMAIN-SUFFIX,twtkr.com,🍃 Proxy
DOMAIN-SUFFIX,twttr.com,🍃 Proxy
DOMAIN-SUFFIX,txmblr.com,🍃 Proxy
DOMAIN-SUFFIX,typcn.com,🍃 Proxy
DOMAIN-SUFFIX,typekit.net,🍃 Proxy
DOMAIN-SUFFIX,typography.com,🍃 Proxy
DOMAIN-SUFFIX,ubertags.com,🍃 Proxy
DOMAIN-SUFFIX,ublock.org,🍃 Proxy
DOMAIN-SUFFIX,ubnt.com,🍃 Proxy
DOMAIN-SUFFIX,uchicago.edu,🍃 Proxy
DOMAIN-SUFFIX,udn.com,🍃 Proxy
DOMAIN-SUFFIX,ugo.com,🍃 Proxy
DOMAIN-SUFFIX,uhdwallpapers.org,🍃 Proxy
DOMAIN-SUFFIX,ulyssesapp.com,🍃 Proxy
DOMAIN-SUFFIX,unblockdmm.com,🍃 Proxy
DOMAIN-SUFFIX,unblocksites.co,🍃 Proxy
DOMAIN-SUFFIX,unpo.org,🍃 Proxy
DOMAIN-SUFFIX,unsplash.com,🍃 Proxy
DOMAIN-SUFFIX,untraceable.us,🍃 Proxy
DOMAIN-SUFFIX,uploaded.net,🍃 Proxy
DOMAIN-SUFFIX,uProxy.org,🍃 Proxy
DOMAIN-SUFFIX,upwork.com,🍃 Proxy
DOMAIN-SUFFIX,urchin.com,🍃 Proxy
DOMAIN-SUFFIX,urlparser.com,🍃 Proxy
DOMAIN-SUFFIX,us.to,🍃 Proxy
DOMAIN-SUFFIX,usertrust.com,🍃 Proxy
DOMAIN-SUFFIX,usgs.gov,🍃 Proxy
DOMAIN-SUFFIX,usma.edu,🍃 Proxy
DOMAIN-SUFFIX,uspto.gov,🍃 Proxy
DOMAIN-SUFFIX,ustream.tv,🍃 Proxy
DOMAIN-SUFFIX,v.gd,🍃 Proxy
DOMAIN-SUFFIX,v2ray.com,🍃 Proxy
DOMAIN-SUFFIX,van001.com,🍃 Proxy
DOMAIN-SUFFIX,vanpeople.com,🍃 Proxy
DOMAIN-SUFFIX,vansky.com,🍃 Proxy
DOMAIN-SUFFIX,vbstatic.co,🍃 Proxy
DOMAIN-SUFFIX,venchina.com,🍃 Proxy
DOMAIN-SUFFIX,venturebeat.com,🍃 Proxy
DOMAIN-SUFFIX,veoh.com,🍃 Proxy
DOMAIN-SUFFIX,verizonwireless.com,🍃 Proxy
DOMAIN-SUFFIX,viber.com,🍃 Proxy
DOMAIN-SUFFIX,vid.me,🍃 Proxy
DOMAIN-SUFFIX,videomega.tv,🍃 Proxy
DOMAIN-SUFFIX,vidinfo.org,🍃 Proxy
DOMAIN-SUFFIX,vimeo.com,🍃 Proxy
DOMAIN-SUFFIX,vimeocdn.com,🍃 Proxy
DOMAIN-SUFFIX,vimperator.org,🍃 Proxy
DOMAIN-SUFFIX,vine.co,🍃 Proxy
DOMAIN-SUFFIX,visibletweets.com,🍃 Proxy
DOMAIN-SUFFIX,viu.com,🍃 Proxy
DOMAIN-SUFFIX,vivaldi.com,🍃 Proxy
DOMAIN-SUFFIX,voachinese.com,🍃 Proxy
DOMAIN-SUFFIX,vocativ.com,🍃 Proxy
DOMAIN-SUFFIX,vox-cdn.com,🍃 Proxy
DOMAIN-SUFFIX,vpnaccount.org,🍃 Proxy
DOMAIN-SUFFIX,vpnbook.com,🍃 Proxy
DOMAIN-SUFFIX,vpngate.net,🍃 Proxy
DOMAIN-SUFFIX,vsco.co,🍃 Proxy
DOMAIN-SUFFIX,vultr.com,🍃 Proxy
DOMAIN-SUFFIX,vzw.com,🍃 Proxy
DOMAIN-SUFFIX,w.org,🍃 Proxy
DOMAIN-SUFFIX,w3schools.com,🍃 Proxy
DOMAIN-SUFFIX,wattpad.com,🍃 Proxy
DOMAIN-SUFFIX,web2project.net,🍃 Proxy
DOMAIN-SUFFIX,webfreer.com,🍃 Proxy
DOMAIN-SUFFIX,weblagu.com,🍃 Proxy
DOMAIN-SUFFIX,websnapr.com,🍃 Proxy
DOMAIN-SUFFIX,webtype.com,🍃 Proxy
DOMAIN-SUFFIX,webwarper.net,🍃 Proxy
DOMAIN-SUFFIX,wenxuecity.com,🍃 Proxy
DOMAIN-SUFFIX,westca.com,🍃 Proxy
DOMAIN-SUFFIX,westpoint.edu,🍃 Proxy
DOMAIN-SUFFIX,whatbrowser.org,🍃 Proxy
DOMAIN-SUFFIX,wikileaks.info,🍃 Proxy
DOMAIN-SUFFIX,wikileaks.org,🍃 Proxy
DOMAIN-SUFFIX,wikileaks-forum.com,🍃 Proxy
DOMAIN-SUFFIX,wikimedia.org,🍃 Proxy
DOMAIN-SUFFIX,wikipedia.com,🍃 Proxy
DOMAIN-SUFFIX,wikipedia.org,🍃 Proxy
DOMAIN-SUFFIX,windows.com,🍃 Proxy
DOMAIN-SUFFIX,windows.net,🍃 Proxy
DOMAIN-SUFFIX,wn.com,🍃 Proxy
DOMAIN-SUFFIX,wordpress.com,🍃 Proxy
DOMAIN-SUFFIX,workflow.is,🍃 Proxy
DOMAIN-SUFFIX,worldcat.org,🍃 Proxy
DOMAIN-SUFFIX,wow.com,🍃 Proxy
DOMAIN-SUFFIX,wp.com,🍃 Proxy
DOMAIN-SUFFIX,wsj.com,🍃 Proxy
DOMAIN-SUFFIX,wsj.net,🍃 Proxy
DOMAIN-SUFFIX,wwitv.com,🍃 Proxy
DOMAIN-SUFFIX,xanga.com,🍃 Proxy
DOMAIN-SUFFIX,xclient.info,🍃 Proxy
DOMAIN-SUFFIX,xda-developers.com,🍃 Proxy
DOMAIN-SUFFIX,xeeno.com,🍃 Proxy
DOMAIN-SUFFIX,xiti.com,🍃 Proxy
DOMAIN-SUFFIX,xuite.net,🍃 Proxy
DOMAIN-SUFFIX,xvideos.com,🍃 Proxy
DOMAIN-SUFFIX,yahoo.com,🍃 Proxy
DOMAIN-SUFFIX,yahooapis.com,🍃 Proxy
DOMAIN-SUFFIX,yasni.co.uk,🍃 Proxy
DOMAIN-SUFFIX,yastatic.net,🍃 Proxy
DOMAIN-SUFFIX,yeeyi.com,🍃 Proxy
DOMAIN-SUFFIX,yesasia.com,🍃 Proxy
DOMAIN-SUFFIX,yes-news.com,🍃 Proxy
DOMAIN-SUFFIX,yidio.com,🍃 Proxy
DOMAIN-SUFFIX,yimg.com,🍃 Proxy
DOMAIN-SUFFIX,ying.com,🍃 Proxy
DOMAIN-SUFFIX,yorkbbs.ca,🍃 Proxy
DOMAIN-SUFFIX,youmaker.com,🍃 Proxy
DOMAIN-SUFFIX,yourlisten.com,🍃 Proxy
DOMAIN-SUFFIX,youtu.be,🍃 Proxy
DOMAIN-SUFFIX,yoyo.org,🍃 Proxy
DOMAIN-SUFFIX,ytimg.com,🍃 Proxy
DOMAIN-SUFFIX,zacebook.com,🍃 Proxy
DOMAIN-SUFFIX,zalmos.com,🍃 Proxy
DOMAIN-SUFFIX,zaobao.com.sg,🍃 Proxy
DOMAIN-SUFFIX,zeutch.com,🍃 Proxy
DOMAIN-SUFFIX,zynamics.com,🍃 Proxy
// Force some domains which are fucked by GFW while resolving DNS,or do not respect the system Proxy
DOMAIN-KEYWORD,appledaily,🍃 Proxy,force-remote-dns
DOMAIN-KEYWORD,beetalk,🍃 Proxy,force-remote-dns
DOMAIN-KEYWORD,blogspot,🍃 Proxy,force-remote-dns
DOMAIN-KEYWORD,dropbox,🍃 Proxy,force-remote-dns
DOMAIN-KEYWORD,facebook,🍃 Proxy,force-remote-dns
DOMAIN-KEYWORD,github,🍃 Proxy,force-remote-dns
DOMAIN-KEYWORD,porn,🍃 Proxy,force-remote-dns
DOMAIN-KEYWORD,spotify,🍃 Proxy,force-remote-dns
DOMAIN-KEYWORD,telegram,🍃 Proxy,force-remote-dns
DOMAIN-KEYWORD,twitter,🍃 Proxy,force-remote-dns
DOMAIN-KEYWORD,whatsapp,🍃 Proxy,force-remote-dns
DOMAIN-KEYWORD,youtube,🍃 Proxy,force-remote-dns
DOMAIN-KEYWORD,google,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,1e100.net,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,2mdn.net,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,abc.xyz,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,akamai.net,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,appspot.com,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,autodraw.com,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,bandwagonhost.com,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,blogblog.com,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,cdninstagram.com,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,chromeexperiments.com,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,creativelab5.com,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,crittercism.com,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,culturalspot.org,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,dartlang.org,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,fb.com,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,fb.me,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,fbcdn.net,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,fbsbx.com,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,gcr.io,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,gmail.com,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,gosetsuden.jp,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,gvt1.com,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,gwtproject.org,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,heroku.com,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,html5rocks.com,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,instagram.com,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,keyhole.com,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,kobo.com,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,kobobooks.com,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,madewithcode.com,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,material.io,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,messenger.com,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,netmarble.com,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,nianticlabs.com,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,pinimg.com,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,pubnub.com,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,scdn.co,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,t.co,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,tensorflow.org,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,toggleable.com,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,torproject.org,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,twimg.com,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,twitpic.com,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,unfiltered.news,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,waveprotocol.org,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,webmproject.org,🍃 Proxy,force-remote-dns
DOMAIN-SUFFIX,webrtc.org,🍃 Proxy,force-remote-dns
// Amazon
IP-CIDR,13.32.0.0/16,🍃 Proxy,no-resolve
IP-CIDR,13.33.0.0/16,🍃 Proxy,no-resolve
IP-CIDR,13.35.0.0/17,🍃 Proxy,no-resolve
IP-CIDR,18.184.0.0/15,🍃 Proxy,no-resolve
IP-CIDR,18.194.0.0/15,🍃 Proxy,no-resolve
IP-CIDR,18.208.0.0/13,🍃 Proxy,no-resolve
IP-CIDR,18.232.0.0/14,🍃 Proxy,no-resolve
IP-CIDR,52.200.0.0/13,🍃 Proxy,no-resolve
IP-CIDR,52.58.0.0/15,🍃 Proxy,no-resolve
IP-CIDR,52.74.0.0/16,🍃 Proxy,no-resolve
IP-CIDR,52.77.0.0/16,🍃 Proxy,no-resolve
IP-CIDR,52.84.0.0/15,🍃 Proxy,no-resolve
IP-CIDR,54.156.0.0/14,🍃 Proxy,no-resolve
IP-CIDR,54.226.0.0/15,🍃 Proxy,no-resolve
IP-CIDR,54.230.156.0/22,🍃 Proxy,no-resolve
IP-CIDR,54.93.0.0/16,🍃 Proxy,no-resolve
// Facebook
IP-CIDR,103.4.96.0/22,🍃 Proxy,no-resolve
IP-CIDR,129.134.0.0/17,🍃 Proxy,no-resolve
IP-CIDR,157.240.0.0/17,🍃 Proxy,no-resolve
IP-CIDR,173.252.64.0/19,🍃 Proxy,no-resolve
IP-CIDR,173.252.96.0/19,🍃 Proxy,no-resolve
IP-CIDR,179.60.192.0/22,🍃 Proxy,no-resolve
IP-CIDR,185.60.216.0/22,🍃 Proxy,no-resolve
IP-CIDR,204.15.20.0/22,🍃 Proxy,no-resolve
IP-CIDR,31.13.24.0/21,🍃 Proxy,no-resolve
IP-CIDR,31.13.64.0/18,🍃 Proxy,no-resolve
IP-CIDR,45.64.40.0/22,🍃 Proxy,no-resolve
IP-CIDR,66.220.144.0/20,🍃 Proxy,no-resolve
IP-CIDR,69.171.224.0/19,🍃 Proxy,no-resolve
IP-CIDR,69.63.176.0/20,🍃 Proxy,no-resolve
IP-CIDR,74.119.76.0/22,🍃 Proxy,no-resolve
// Google
IP-CIDR,173.194.0.0/16,🍃 Proxy,no-resolve
IP-CIDR,74.125.0.0/16,🍃 Proxy,no-resolve
// Kakao Talk
IP-CIDR,1.201.0.0/24,🍃 Proxy,no-resolve
IP-CIDR,103.246.56.0/22,🍃 Proxy,no-resolve
IP-CIDR,103.27.148.0/22,🍃 Proxy,no-resolve
IP-CIDR,110.76.140.0/22,🍃 Proxy,no-resolve
IP-CIDR,113.61.104.0/22,🍃 Proxy,no-resolve
IP-CIDR,27.0.236.0/22,🍃 Proxy,no-resolve
// LINE
IP-CIDR,103.2.28.0/22,🍃 Proxy,no-resolve
IP-CIDR,119.235.224.0/21,🍃 Proxy,no-resolve
IP-CIDR,119.235.232.0/23,🍃 Proxy,no-resolve
IP-CIDR,119.235.235.0/24,🍃 Proxy,no-resolve
IP-CIDR,119.235.236.0/23,🍃 Proxy,no-resolve
IP-CIDR,125.6.146.0/24,🍃 Proxy,no-resolve
IP-CIDR,125.6.149.0/24,🍃 Proxy,no-resolve
IP-CIDR,125.6.190.0/24,🍃 Proxy,no-resolve
IP-CIDR,125.209.208.0/20,🍃 Proxy,no-resolve
IP-CIDR,203.104.103.0/24,🍃 Proxy,no-resolve
IP-CIDR,203.104.128.0/20,🍃 Proxy,no-resolve
IP-CIDR,203.174.66.64/26,🍃 Proxy,no-resolve
IP-CIDR,203.174.77.0/24,🍃 Proxy,no-resolve
// Potato Chat
IP-CIDR,13.251.24.157/24,🍃 Proxy,no-resolve
IP-CIDR,13.251.41.203/24,🍃 Proxy,no-resolve
IP-CIDR,17.252.156.147/24,🍃 Proxy,no-resolve
IP-CIDR,17.252.157.26/24,🍃 Proxy,no-resolve
// SoftLayer
IP-CIDR,74.86.0.0/16,🍃 Proxy,no-resolve
IP-CIDR,75.126.0.0/16,🍃 Proxy,no-resolve
IP-CIDR,174.37.0.0/16,🍃 Proxy,no-resolve
IP-CIDR,208.43.0.0/16,🍃 Proxy,no-resolve
// Telegram
IP-CIDR,109.239.140.0/24,🍃 Proxy,no-resolve
IP-CIDR,149.154.160.0/20,🍃 Proxy,no-resolve
IP-CIDR,149.154.164.0/22,🍃 Proxy,no-resolve
IP-CIDR,149.154.168.0/22,🍃 Proxy,no-resolve
IP-CIDR,149.154.172.0/22,🍃 Proxy,no-resolve
IP-CIDR,91.108.4.0/22,🍃 Proxy,no-resolve
IP-CIDR,91.108.56.0/22,🍃 Proxy,no-resolve
IP-CIDR,91.108.8.0/22,🍃 Proxy,no-resolve

@ -0,0 +1,4 @@
## 规则分离目录
使用 lhie1/Rules <https://github.com/lhie1/Rules>…

@ -0,0 +1,801 @@
Rule:
# (GlobalTV)
# > ABC
- DOMAIN-SUFFIX,edgedatg.com,GlobalTV
- DOMAIN-SUFFIX,go.com,GlobalTV
# > AbemaTV
- DOMAIN,linear-abematv.akamaized.net,GlobalTV
- DOMAIN-SUFFIX,abema.io,GlobalTV
- DOMAIN-SUFFIX,abema.tv,GlobalTV
- DOMAIN-SUFFIX,akamaized.net,GlobalTV
- DOMAIN-SUFFIX,ameba.jp,GlobalTV
- DOMAIN-SUFFIX,hayabusa.io,GlobalTV
# > Amazon Prime Video
- DOMAIN-SUFFIX,aiv-cdn.net,GlobalTV
- DOMAIN-SUFFIX,amazonaws.com,GlobalTV
- DOMAIN-SUFFIX,amazonvideo.com,GlobalTV
- DOMAIN-SUFFIX,llnwd.net,GlobalTV
# > Bahamut
- DOMAIN-SUFFIX,bahamut.com.tw,GlobalTV
- DOMAIN-SUFFIX,gamer.com.tw,GlobalTV
- DOMAIN-SUFFIX,hinet.net,GlobalTV
# > BBC
- DOMAIN-KEYWORD,bbcfmt,GlobalTV
- DOMAIN-KEYWORD,co.uk,GlobalTV
- DOMAIN-KEYWORD,uk-live,GlobalTV
- DOMAIN-SUFFIX,bbc.co,GlobalTV
- DOMAIN-SUFFIX,bbc.co.uk,GlobalTV
- DOMAIN-SUFFIX,bbc.com,GlobalTV
- DOMAIN-SUFFIX,bbci.co,GlobalTV
- DOMAIN-SUFFIX,bbci.co.uk,GlobalTV
# > CHOCO TV
- DOMAIN-SUFFIX,chocotv.com.tw,GlobalTV
# > Epicgames
- DOMAIN-KEYWORD,epicgames,GlobalTV
- DOMAIN-SUFFIX,helpshift.com,GlobalTV
# > Fox+
- DOMAIN-KEYWORD,foxplus,GlobalTV
- DOMAIN-SUFFIX,config.fox.com,GlobalTV
- DOMAIN-SUFFIX,emome.net,GlobalTV
- DOMAIN-SUFFIX,fox.com,GlobalTV
- DOMAIN-SUFFIX,foxdcg.com,GlobalTV
- DOMAIN-SUFFIX,foxnow.com,GlobalTV
- DOMAIN-SUFFIX,foxplus.com,GlobalTV
- DOMAIN-SUFFIX,foxplay.com,GlobalTV
- DOMAIN-SUFFIX,ipinfo.io,GlobalTV
- DOMAIN-SUFFIX,mstage.io,GlobalTV
- DOMAIN-SUFFIX,now.com,GlobalTV
- DOMAIN-SUFFIX,theplatform.com,GlobalTV
- DOMAIN-SUFFIX,urlload.net,GlobalTV
# > HBO && HBO Go
- DOMAIN-SUFFIX,execute-api.ap-southeast-1.amazonaws.com,GlobalTV
- DOMAIN-SUFFIX,hbo.com,GlobalTV
- DOMAIN-SUFFIX,hboasia.com,GlobalTV
- DOMAIN-SUFFIX,hbogo.com,GlobalTV
- DOMAIN-SUFFIX,hbogoasia.hk,GlobalTV
# > Hulu
- DOMAIN-SUFFIX,happyon.jp,GlobalTV
- DOMAIN-SUFFIX,hulu.com,GlobalTV
- DOMAIN-SUFFIX,huluim.com,GlobalTV
- DOMAIN-SUFFIX,hulustream.com,GlobalTV
# > Imkan
- DOMAIN-SUFFIX,imkan.tv,GlobalTV
# > JOOX
- DOMAIN-SUFFIX,joox.com,GlobalTV
# > MytvSUPER
- DOMAIN-KEYWORD,nowtv100,GlobalTV
- DOMAIN-KEYWORD,rthklive,GlobalTV
- DOMAIN-SUFFIX,mytvsuper.com,GlobalTV
- DOMAIN-SUFFIX,tvb.com,GlobalTV
# > Netflix
- DOMAIN-SUFFIX,netflix.com,GlobalTV
- DOMAIN-SUFFIX,netflix.net,GlobalTV
- DOMAIN-SUFFIX,nflxext.com,GlobalTV
- DOMAIN-SUFFIX,nflximg.com,GlobalTV
- DOMAIN-SUFFIX,nflximg.net,GlobalTV
- DOMAIN-SUFFIX,nflxso.net,GlobalTV
- DOMAIN-SUFFIX,nflxvideo.net,GlobalTV
# > Pandora
- DOMAIN-SUFFIX,pandora.com,GlobalTV
# > Sky GO
- DOMAIN-SUFFIX,sky.com,GlobalTV
- DOMAIN-SUFFIX,skygo.co.nz,GlobalTV
# > Spotify
- DOMAIN-KEYWORD,spotify,GlobalTV
- DOMAIN-SUFFIX,scdn.co,GlobalTV
- DOMAIN-SUFFIX,spoti.fi,GlobalTV
# > viuTV
- DOMAIN-SUFFIX,viu.tv,GlobalTV
# > Youtube
- DOMAIN-KEYWORD,youtube,GlobalTV
- DOMAIN-SUFFIX,googlevideo.com,GlobalTV
- DOMAIN-SUFFIX,gvt2.com,GlobalTV
- DOMAIN-SUFFIX,youtu.be,GlobalTV
# (AsianTV)
# > Bilibili
- DOMAIN-KEYWORD,bilibili,AsianTV
- DOMAIN-SUFFIX,acg.tv,AsianTV
- DOMAIN-SUFFIX,acgvideo.com,AsianTV
- DOMAIN-SUFFIX,b23.tv,AsianTV
- DOMAIN-SUFFIX,biliapi.com,AsianTV
- DOMAIN-SUFFIX,biliapi.net,AsianTV
- DOMAIN-SUFFIX,bilibili.com,AsianTV
- DOMAIN-SUFFIX,biligame.com,AsianTV
- DOMAIN-SUFFIX,biligame.net,AsianTV
- DOMAIN-SUFFIX,hdslb.com,AsianTV
- DOMAIN-SUFFIX,im9.com,AsianTV
# > IQIYI
- DOMAIN-KEYWORD,qiyi,AsianTV
- DOMAIN-SUFFIX,qy.net,AsianTV
# > letv
- DOMAIN-SUFFIX,api.mob.app.letv.com,AsianTV
# > NeteaseMusic
- DOMAIN-SUFFIX,163yun.com,AsianTV
- DOMAIN-SUFFIX,music.126.net,AsianTV
- DOMAIN-SUFFIX,music.163.com,AsianTV
# > Tencent Video
- DOMAIN-SUFFIX,vv.video.qq.com,AsianTV
# China Area Network
# > Microsoft
- DOMAIN-SUFFIX,microsoft.com,Domestic
- DOMAIN-SUFFIX,windows.net,Domestic
- DOMAIN-SUFFIX,sfx.ms,Domestic
- DOMAIN-SUFFIX,sharepoint.com,Domestic
- DOMAIN-KEYWORD,officecdn,Domestic
# > Blizzard
- DOMAIN-SUFFIX,blizzard.com,Domestic
- DOMAIN-SUFFIX,battle.net,Domestic
- DOMAIN,blzddist1-a.akamaihd.net,Domestic
# > Steam
- DOMAIN-SUFFIX,steampowered.com,Domestic
- DOMAIN-SUFFIX,steam-chat.com,Domestic
- DOMAIN-KEYWORD,steamcdn,Domestic
- DOMAIN-KEYWORD,steamstore,Domestic
- DOMAIN-KEYWORD,steamuserimages,Domestic
- DOMAIN-KEYWORD,steambroadcast,Domestic
# > Tencent
#USER-AGENT,MicroMessenger%20Client,Domestic
#USER-AGENT,WeChat*,Domestic
- DOMAIN-SUFFIX,qq.com,Domestic
- DOMAIN-SUFFIX,qpic.cn,Domestic
- DOMAIN-SUFFIX,tencent.com,Domestic
# > Alibaba
- DOMAIN-SUFFIX,alibaba.com,Domestic
- DOMAIN-SUFFIX,alicdn.com,Domestic
- DOMAIN-SUFFIX,amap.com,Domestic
- DOMAIN-SUFFIX,dingtalk.com,Domestic
- DOMAIN-SUFFIX,taobao.com,Domestic
- DOMAIN-SUFFIX,tmall.com,Domestic
- DOMAIN-SUFFIX,ykimg.com,Domestic
- DOMAIN-SUFFIX,youku.com,Domestic
- DOMAIN-SUFFIX,xiami.com,Domestic
- DOMAIN-SUFFIX,xiami.net,Domestic
# > NetEase
- DOMAIN-SUFFIX,163.com,Domestic
- DOMAIN-SUFFIX,126.net,Domestic
- DOMAIN-SUFFIX,163yun.com,Domestic
# > Sohu
- DOMAIN-SUFFIX,sohu.com.cn,Domestic
- DOMAIN-SUFFIX,itc.cn,Domestic
- DOMAIN-SUFFIX,sohu.com,Domestic
- DOMAIN-SUFFIX,v-56.com,Domestic
# > Sina
- DOMAIN-SUFFIX,weibo.com,Domestic
- DOMAIN-SUFFIX,weibo.cn,Domestic
# > JD
- DOMAIN-SUFFIX,jd.com,Domestic
- DOMAIN-SUFFIX,jd.hk,Domestic
- DOMAIN-SUFFIX,360buyimg.com,Domestic
# > MI
- DOMAIN-SUFFIX,duokan.com,Domestic
- DOMAIN-SUFFIX,mi-img.com,Domestic
- DOMAIN-SUFFIX,mifile.cn,Domestic
- DOMAIN-SUFFIX,xiaomi.com,Domestic
# > bilibili
- DOMAIN-SUFFIX,acgvideo.com,Domestic
- DOMAIN-SUFFIX,bilibili.com,Domestic
- DOMAIN-SUFFIX,hdslb.com,Domestic
# > iQiyi
- DOMAIN-SUFFIX,iqiyi.com,Domestic
- DOMAIN-SUFFIX,iqiyipic.com,Domestic
- DOMAIN-SUFFIX,71.am.com,Domestic
# > HunanTV
- DOMAIN-SUFFIX,hitv.com,Domestic
- DOMAIN-SUFFIX,mgtv.com,Domestic
# > Meitu
- DOMAIN-SUFFIX,meitu.com,Domestic
- DOMAIN-SUFFIX,meitudata.com,Domestic
- DOMAIN-SUFFIX,meipai.com,Domestic
# > YYeTs
- DOMAIN-SUFFIX,zmzapi.com,Domestic
- DOMAIN-SUFFIX,zimuzu.tv,Domestic
- DOMAIN-SUFFIX,zmzfile.com,Domestic
- DOMAIN-SUFFIX,zmzapi.net,Domestic
# > 蛋蛋赞
- DOMAIN-SUFFIX,baduziyuan.com,Domestic
- DOMAIN-SUFFIX,com-hs-hkdy.com,Domestic
- DOMAIN-SUFFIX,czybjz.com,Domestic
- DOMAIN-SUFFIX,dandanzan.com,Domestic
- DOMAIN-SUFFIX,fjhps.com,Domestic
- DOMAIN-SUFFIX,kuyunbo.club,Domestic
# > Baidu
- DOMAIN-SUFFIX,baidu.com,Domestic
- DOMAIN-SUFFIX,baidubcr.com,Domestic
- DOMAIN-SUFFIX,bdstatic.com,Domestic
# > ChinaNet
- DOMAIN-SUFFIX,189.cn,Domestic
- DOMAIN-SUFFIX,21cn.com,Domestic
# > ByteDance
- DOMAIN-SUFFIX,bytecdn.cn,Domestic
- DOMAIN-SUFFIX,pstatp.com,Domestic
- DOMAIN-SUFFIX,snssdk.com,Domestic
- DOMAIN-SUFFIX,toutiao.com,Domestic
# > Content Delivery Network
# > Akamai
- DOMAIN-SUFFIX,akadns.net,Domestic
# - DOMAIN-SUFFIX,akamai.net,Domestic
# - DOMAIN-SUFFIX,akamaiedge.net,Domestic
# - DOMAIN-SUFFIX,akamaihd.net,Domestic
# - DOMAIN-SUFFIX,akamaistream.net,Domestic
# - DOMAIN-SUFFIX,akamaized.net,Domestic
# > ChinaNetCenter
- DOMAIN-SUFFIX,chinanetcenter.com,Domestic
- DOMAIN-SUFFIX,wangsu.com,Domestic
# > IP Query
- DOMAIN-SUFFIX,ipip.net,Domestic
- DOMAIN-SUFFIX,ip.cn,Domestic
- DOMAIN-SUFFIX,ip.la,Domestic
- DOMAIN-SUFFIX,ip-cdn.com,Domestic
- DOMAIN-SUFFIX,ipv6-test.com,Domestic
- DOMAIN-SUFFIX,test-ipv6.com,Domestic
- DOMAIN-SUFFIX,whatismyip.com,Domestic
- DOMAIN,ip.bjango.com,Domestic
# > Other
- DOMAIN-SUFFIX,40017.cn,Domestic
- DOMAIN-SUFFIX,broadcasthe.net,Domestic
- DOMAIN-SUFFIX,cailianpress.com,Domestic
- DOMAIN-SUFFIX,chdbits.co,Domestic
- DOMAIN-SUFFIX,chushou.tv,Domestic
- DOMAIN-SUFFIX,cmbchina.com,Domestic
- DOMAIN-SUFFIX,cmbimg.com,Domestic
- DOMAIN-SUFFIX,cmct.tv,Domestic
- DOMAIN-SUFFIX,cmvideo.cn,Domestic
- DOMAIN-SUFFIX,cnlang.org,Domestic
- DOMAIN-SUFFIX,doubanio.com,Domestic
- DOMAIN-SUFFIX,douyu.com,Domestic
- DOMAIN-SUFFIX,douyucdn.cn,Domestic
- DOMAIN-SUFFIX,dxycdn.com,Domestic
- DOMAIN-SUFFIX,hicloud.com,Domestic
- DOMAIN-SUFFIX,hdchina.org,Domestic
- DOMAIN-SUFFIX,hdcmct.org,Domestic
- DOMAIN-SUFFIX,ithome.com,Domestic
- DOMAIN-SUFFIX,kkmh.com,Domestic
- DOMAIN-SUFFIX,ksosoft.com,Domestic
- DOMAIN-SUFFIX,maoyun.tv,Domestic
- DOMAIN-SUFFIX,meituan.net,Domestic
- DOMAIN-SUFFIX,mobike.com,Domestic
- DOMAIN-SUFFIX,mubu.com,Domestic
- DOMAIN-SUFFIX,myzaker.com,Domestic
- DOMAIN-SUFFIX,ourbits.club,Domestic
- DOMAIN-SUFFIX,passthepopcorn.me,Domestic
- DOMAIN-SUFFIX,paypal.com,Domestic
- DOMAIN-SUFFIX,paypalobjects.com,Domestic
- DOMAIN-SUFFIX,privatehd.to,Domestic
- DOMAIN-SUFFIX,redacted.ch,Domestic
- DOMAIN-SUFFIX,ruguoapp.com,Domestic
- DOMAIN-SUFFIX,smzdm.com,Domestic
- DOMAIN-SUFFIX,sogou.com,Domestic
- DOMAIN-SUFFIX,teamviewer.com,Domestic
- DOMAIN-SUFFIX,totheglory.im,Domestic
- DOMAIN-SUFFIX,tp.m-team.cc,Domestic
- DOMAIN-SUFFIX,udacity.com,Domestic
- DOMAIN-SUFFIX,xmcdn.com,Domestic
- DOMAIN-SUFFIX,yangkeduo.com,Domestic
- DOMAIN-SUFFIX,zhihu.com,Domestic
- DOMAIN-SUFFIX,zhimg.com,Domestic
#USER-AGENT,NeteaseMusic*,Domestic
#USER-AGENT,%E7%BD%91%E6%98%93%E4%BA%91%E9%9F%B3%E4%B9%90*,Domestic
# (DNS Cache Pollution Protection)
# > Google
- DOMAIN-SUFFIX,appspot.com,Proxy
- DOMAIN-SUFFIX,blogger.com,Proxy
- DOMAIN-SUFFIX,getoutline.org,Proxy
- DOMAIN-SUFFIX,gvt0.com,Proxy
- DOMAIN-SUFFIX,gvt1.com,Proxy
- DOMAIN-SUFFIX,gvt3.com,Proxy
- DOMAIN-SUFFIX,xn--ngstr-lra8j.com,Proxy
- DOMAIN-KEYWORD,google,Proxy
- DOMAIN-KEYWORD,blogspot,Proxy
# > Facebook
- DOMAIN-SUFFIX,cdninstagram.com,Proxy
- DOMAIN-SUFFIX,fb.com,Proxy
- DOMAIN-SUFFIX,fb.me,Proxy
- DOMAIN-SUFFIX,fbaddins.com,Proxy
- DOMAIN-SUFFIX,fbcdn.net,Proxy
- DOMAIN-SUFFIX,fbsbx.com,Proxy
- DOMAIN-SUFFIX,fbworkmail.com,Proxy
- DOMAIN-SUFFIX,instagram.com,Proxy
- DOMAIN-SUFFIX,m.me,Proxy
- DOMAIN-SUFFIX,messenger.com,Proxy
- DOMAIN-SUFFIX,oculus.com,Proxy
- DOMAIN-SUFFIX,oculuscdn.com,Proxy
- DOMAIN-SUFFIX,rocksdb.org,Proxy
- DOMAIN-SUFFIX,whatsapp.com,Proxy
- DOMAIN-SUFFIX,whatsapp.net,Proxy
- DOMAIN-KEYWORD,facebook,Proxy
# > Twitter
- DOMAIN-SUFFIX,pscp.tv,Proxy
- DOMAIN-SUFFIX,periscope.tv,Proxy
- DOMAIN-SUFFIX,t.co,Proxy
- DOMAIN-SUFFIX,twimg.co,Proxy
- DOMAIN-SUFFIX,twimg.com,Proxy
- DOMAIN-SUFFIX,twitpic.com,Proxy
- DOMAIN-SUFFIX,vine.co,Proxy
- DOMAIN-KEYWORD,twitter,Proxy
# > Telegram
- DOMAIN-SUFFIX,t.me,Proxy
- DOMAIN-SUFFIX,tdesktop.com,Proxy
- DOMAIN-SUFFIX,telegra.ph,Proxy
- DOMAIN-SUFFIX,telegram.me,Proxy
- DOMAIN-SUFFIX,telegram.org,Proxy
# > Line
- DOMAIN-SUFFIX,line.me,Proxy
- DOMAIN-SUFFIX,line-apps.com,Proxy
- DOMAIN-SUFFIX,line-scdn.net,Proxy
- DOMAIN-SUFFIX,naver.jp,Proxy
# > Other
- DOMAIN-SUFFIX,4shared.com,Proxy
- DOMAIN-SUFFIX,881903.com,Proxy
- DOMAIN-SUFFIX,abc.net.au,Proxy
- DOMAIN-SUFFIX,abebooks.com,Proxy
- DOMAIN-SUFFIX,amazon.co.jp,Proxy
- DOMAIN-SUFFIX,apigee.com,Proxy
- DOMAIN-SUFFIX,apk-dl.com,Proxy
- DOMAIN-SUFFIX,apkmirror.com,Proxy
- DOMAIN-SUFFIX,apkmonk.com,Proxy
- DOMAIN-SUFFIX,apkpure.com,Proxy
- DOMAIN-SUFFIX,aptoide.com,Proxy
- DOMAIN-SUFFIX,archive.is,Proxy
- DOMAIN-SUFFIX,archive.org,Proxy
- DOMAIN-SUFFIX,arte.tv,Proxy
- DOMAIN-SUFFIX,ask.com,Proxy
- DOMAIN-SUFFIX,avgle.com,Proxy
- DOMAIN-SUFFIX,badoo.com,Proxy
- DOMAIN-SUFFIX,bandwagonhost.com,Proxy
- DOMAIN-SUFFIX,bbc.com,Proxy
- DOMAIN-SUFFIX,behance.net,Proxy
- DOMAIN-SUFFIX,bibox.com,Proxy
- DOMAIN-SUFFIX,biggo.com.tw,Proxy
- DOMAIN-SUFFIX,binance.com,Proxy
- DOMAIN-SUFFIX,bitcointalk.org,Proxy
- DOMAIN-SUFFIX,bitfinex.com,Proxy
- DOMAIN-SUFFIX,bitmex.com,Proxy
- DOMAIN-SUFFIX,bit-z.com,Proxy
- DOMAIN-SUFFIX,bloglovin.com,Proxy
- DOMAIN-SUFFIX,bloomberg.cn,Proxy
- DOMAIN-SUFFIX,bloomberg.com,Proxy
- DOMAIN-SUFFIX,book.com.tw,Proxy
- DOMAIN-SUFFIX,booklive.jp,Proxy
- DOMAIN-SUFFIX,books.com.tw,Proxy
- DOMAIN-SUFFIX,box.com,Proxy
- DOMAIN-SUFFIX,brookings.edu,Proxy
- DOMAIN-SUFFIX,businessinsider.com,Proxy
- DOMAIN-SUFFIX,bwh1.net,Proxy
- DOMAIN-SUFFIX,castbox.fm,Proxy
- DOMAIN-SUFFIX,cbc.ca,Proxy
- DOMAIN-SUFFIX,cdw.com,Proxy
- DOMAIN-SUFFIX,change.org,Proxy
- DOMAIN-SUFFIX,ck101.com,Proxy
- DOMAIN-SUFFIX,clarionproject.org,Proxy
- DOMAIN-SUFFIX,clyp.it,Proxy
- DOMAIN-SUFFIX,cna.com.tw,Proxy
- DOMAIN-SUFFIX,comparitech.com,Proxy
- DOMAIN-SUFFIX,conoha.jp,Proxy
- DOMAIN-SUFFIX,crucial.com,Proxy
- DOMAIN-SUFFIX,cts.com.tw,Proxy
- DOMAIN-SUFFIX,cw.com.tw,Proxy
- DOMAIN-SUFFIX,cyberctm.com,Proxy
- DOMAIN-SUFFIX,dailymotion.com,Proxy
- DOMAIN-SUFFIX,dailyview.tw,Proxy
- DOMAIN-SUFFIX,daum.net,Proxy
- DOMAIN-SUFFIX,daumcdn.net,Proxy
- DOMAIN-SUFFIX,dcard.tw,Proxy
- DOMAIN-SUFFIX,deepdiscount.com,Proxy
- DOMAIN-SUFFIX,deezer.com,Proxy
- DOMAIN-SUFFIX,depositphotos.com,Proxy
- DOMAIN-SUFFIX,disconnect.me,Proxy
- DOMAIN-SUFFIX,discordapp.com,Proxy
- DOMAIN-SUFFIX,discordapp.net,Proxy
- DOMAIN-SUFFIX,disqus.com,Proxy
- DOMAIN-SUFFIX,dns2go.com,Proxy
- DOMAIN-SUFFIX,dropbox.com,Proxy
- DOMAIN-SUFFIX,dropboxusercontent.com,Proxy
- DOMAIN-SUFFIX,duckduckgo.com,Proxy
- DOMAIN-SUFFIX,dw.com,Proxy
- DOMAIN-SUFFIX,dynu.com,Proxy
- DOMAIN-SUFFIX,earthcam.com,Proxy
- DOMAIN-SUFFIX,ebookservice.tw,Proxy
- DOMAIN-SUFFIX,economist.com,Proxy
- DOMAIN-SUFFIX,edgecastcdn.net,Proxy
- DOMAIN-SUFFIX,edu,Proxy
- DOMAIN-SUFFIX,elpais.com,Proxy
- DOMAIN-SUFFIX,enanyang.my,Proxy
- DOMAIN-SUFFIX,euronews.com,Proxy
- DOMAIN-SUFFIX,feedly.com,Proxy
- DOMAIN-SUFFIX,files.wordpress.com,Proxy
- DOMAIN-SUFFIX,flickr.com,Proxy
- DOMAIN-SUFFIX,flitto.com,Proxy
- DOMAIN-SUFFIX,foreignpolicy.com,Proxy
- DOMAIN-SUFFIX,friday.tw,Proxy
- DOMAIN-SUFFIX,gate.io,Proxy
- DOMAIN-SUFFIX,getlantern.org,Proxy
- DOMAIN-SUFFIX,getsync.com,Proxy
- DOMAIN-SUFFIX,globalvoices.org,Proxy
- DOMAIN-SUFFIX,goo.ne.jp,Proxy
- DOMAIN-SUFFIX,goodreads.com,Proxy
- DOMAIN-SUFFIX,gov.tw,Proxy
- DOMAIN-SUFFIX,gumroad.com,Proxy
- DOMAIN-SUFFIX,hbg.com,Proxy
- DOMAIN-SUFFIX,hightail.com,Proxy
- DOMAIN-SUFFIX,hk01.com,Proxy
- DOMAIN-SUFFIX,hkbf.org,Proxy
- DOMAIN-SUFFIX,hkbookcity.com,Proxy
- DOMAIN-SUFFIX,hkej.com,Proxy
- DOMAIN-SUFFIX,hket.com,Proxy
- DOMAIN-SUFFIX,hkgolden.com,Proxy
- DOMAIN-SUFFIX,hootsuite.com,Proxy
- DOMAIN-SUFFIX,hudson.org,Proxy
- DOMAIN-SUFFIX,huobi.pro,Proxy
- DOMAIN-SUFFIX,initiummall.com,Proxy
- DOMAIN-SUFFIX,ipfs.io,Proxy
- DOMAIN-SUFFIX,issuu.com,Proxy
- DOMAIN-SUFFIX,japantimes.co.jp,Proxy
- DOMAIN-SUFFIX,jiji.com,Proxy
- DOMAIN-SUFFIX,jinx.com,Proxy
- DOMAIN-SUFFIX,jkforum.net,Proxy
- DOMAIN-SUFFIX,joinmastodon.org,Proxy
- DOMAIN-SUFFIX,kakao.com,Proxy
- DOMAIN-SUFFIX,lihkg.com,Proxy
- DOMAIN-SUFFIX,live.com,Proxy
- DOMAIN-SUFFIX,mail.ru,Proxy
- DOMAIN-SUFFIX,matters.news,Proxy
- DOMAIN-SUFFIX,medium.com,Proxy
- DOMAIN-SUFFIX,mega.nz,Proxy
- DOMAIN-SUFFIX,mil,Proxy
- DOMAIN-SUFFIX,mobile01.com,Proxy
- DOMAIN-SUFFIX,naver.com,Proxy
- DOMAIN-SUFFIX,nikkei.com,Proxy
- DOMAIN-SUFFIX,nofile.io,Proxy
- DOMAIN-SUFFIX,now.com,Proxy
- DOMAIN-SUFFIX,nyt.com,Proxy
- DOMAIN-SUFFIX,nytchina.com,Proxy
- DOMAIN-SUFFIX,nytcn.me,Proxy
- DOMAIN-SUFFIX,nytco.com,Proxy
- DOMAIN-SUFFIX,nytimes.com,Proxy
- DOMAIN-SUFFIX,nytimg.com,Proxy
- DOMAIN-SUFFIX,nytlog.com,Proxy
- DOMAIN-SUFFIX,nytstyle.com,Proxy
- DOMAIN-SUFFIX,ok.ru,Proxy
- DOMAIN-SUFFIX,okex.com,Proxy
- DOMAIN-SUFFIX,pcloud.com,Proxy
- DOMAIN-SUFFIX,pinimg.com,Proxy
- DOMAIN-SUFFIX,pixiv.net,Proxy
- DOMAIN-SUFFIX,pornhub.com,Proxy
- DOMAIN-SUFFIX,pureapk.com,Proxy
- DOMAIN-SUFFIX,quora.com,Proxy
- DOMAIN-SUFFIX,quoracdn.net,Proxy
- DOMAIN-SUFFIX,rakuten.co.jp,Proxy
- DOMAIN-SUFFIX,reddit.com,Proxy
- DOMAIN-SUFFIX,redditmedia.com,Proxy
- DOMAIN-SUFFIX,resilio.com,Proxy
- DOMAIN-SUFFIX,reuters.com,Proxy
- DOMAIN-SUFFIX,scmp.com,Proxy
- DOMAIN-SUFFIX,scribd.com,Proxy
- DOMAIN-SUFFIX,seatguru.com,Proxy
- DOMAIN-SUFFIX,shadowsocks.org,Proxy
- DOMAIN-SUFFIX,slideshare.net,Proxy
- DOMAIN-SUFFIX,soundcloud.com,Proxy
- DOMAIN-SUFFIX,startpage.com,Proxy
- DOMAIN-SUFFIX,steamcommunity.com,Proxy
- DOMAIN-SUFFIX,steemit.com,Proxy
- DOMAIN-SUFFIX,t66y.com,Proxy
- DOMAIN-SUFFIX,teco-hk.org,Proxy
- DOMAIN-SUFFIX,teco-mo.org,Proxy
- DOMAIN-SUFFIX,teddysun.com,Proxy
- DOMAIN-SUFFIX,theinitium.com,Proxy
- DOMAIN-SUFFIX,tineye.com,Proxy
- DOMAIN-SUFFIX,torproject.org,Proxy
- DOMAIN-SUFFIX,tumblr.com,Proxy
- DOMAIN-SUFFIX,turbobit.net,Proxy
- DOMAIN-SUFFIX,twitch.tv,Proxy
- DOMAIN-SUFFIX,udn.com,Proxy
- DOMAIN-SUFFIX,unseen.is,Proxy
- DOMAIN-SUFFIX,upmedia.mg,Proxy
- DOMAIN-SUFFIX,uptodown.com,Proxy
- DOMAIN-SUFFIX,ustream.tv,Proxy
- DOMAIN-SUFFIX,uwants.com,Proxy
- DOMAIN-SUFFIX,v2ray.com,Proxy
- DOMAIN-SUFFIX,viber.com,Proxy
- DOMAIN-SUFFIX,videopress.com,Proxy
- DOMAIN-SUFFIX,vimeo.com,Proxy
- DOMAIN-SUFFIX,voxer.com,Proxy
- DOMAIN-SUFFIX,vzw.com,Proxy
- DOMAIN-SUFFIX,w3schools.com,Proxy
- DOMAIN-SUFFIX,wattpad.com,Proxy
- DOMAIN-SUFFIX,whoer.net,Proxy
- DOMAIN-SUFFIX,wikimapia.org,Proxy
- DOMAIN-SUFFIX,wikipedia.org,Proxy
- DOMAIN-SUFFIX,wire.com,Proxy
- DOMAIN-SUFFIX,worldcat.org,Proxy
- DOMAIN-SUFFIX,wsj.com,Proxy
- DOMAIN-SUFFIX,wsj.net,Proxy
- DOMAIN-SUFFIX,xboxlive.com,Proxy
- DOMAIN-SUFFIX,xvideos.com,Proxy
- DOMAIN-SUFFIX,yahoo.com,Proxy
- DOMAIN-SUFFIX,yesasia.com,Proxy
- DOMAIN-SUFFIX,yes-news.com,Proxy
- DOMAIN-SUFFIX,yomiuri.co.jp,Proxy
- DOMAIN-SUFFIX,you-get.org,Proxy
- DOMAIN-SUFFIX,zb.com,Proxy
- DOMAIN-SUFFIX,zello.com,Proxy
- DOMAIN-SUFFIX,zeronet.io,Proxy
- DOMAIN,cdn-images.mailchimp.com,Proxy
- DOMAIN,id.heroku.com,Proxy
- DOMAIN-KEYWORD,github,Proxy
- DOMAIN-KEYWORD,jav,Proxy
- DOMAIN-KEYWORD,pinterest,Proxy
- DOMAIN-KEYWORD,porn,Proxy
- DOMAIN-KEYWORD,wikileaks,Proxy
# (Region-Restricted Access Denied)
- DOMAIN-SUFFIX,apartmentratings.com,Proxy
- DOMAIN-SUFFIX,apartments.com,Proxy
- DOMAIN-SUFFIX,bankmobilevibe.com,Proxy
- DOMAIN-SUFFIX,bing.com,Proxy
- DOMAIN-SUFFIX,booktopia.com.au,Proxy
- DOMAIN-SUFFIX,centauro.com.br,Proxy
- DOMAIN-SUFFIX,clearsurance.com,Proxy
- DOMAIN-SUFFIX,costco.com,Proxy
- DOMAIN-SUFFIX,crackle.com,Proxy
- DOMAIN-SUFFIX,depositphotos.cn,Proxy
- DOMAIN-SUFFIX,dish.com,Proxy
- DOMAIN-SUFFIX,dmm.co.jp,Proxy
- DOMAIN-SUFFIX,dmm.com,Proxy
- DOMAIN-SUFFIX,dnvod.tv,Proxy
- DOMAIN-SUFFIX,esurance.com,Proxy
- DOMAIN-SUFFIX,extmatrix.com,Proxy
- DOMAIN-SUFFIX,fastpic.ru,Proxy
- DOMAIN-SUFFIX,flipboard.com,Proxy
- DOMAIN-SUFFIX,fnac.be,Proxy
- DOMAIN-SUFFIX,fnac.com,Proxy
- DOMAIN-SUFFIX,funkyimg.com,Proxy
- DOMAIN-SUFFIX,fxnetworks.com,Proxy
- DOMAIN-SUFFIX,gettyimages.com,Proxy
- DOMAIN-SUFFIX,jcpenney.com,Proxy
- DOMAIN-SUFFIX,kknews.cc,Proxy
- DOMAIN-SUFFIX,nationwide.com,Proxy
- DOMAIN-SUFFIX,nbc.com,Proxy
- DOMAIN-SUFFIX,nordstrom.com,Proxy
- DOMAIN-SUFFIX,nordstromimage.com,Proxy
- DOMAIN-SUFFIX,nordstromrack.com,Proxy
- DOMAIN-SUFFIX,read01.com,Proxy
- DOMAIN-SUFFIX,superpages.com,Proxy
- DOMAIN-SUFFIX,target.com,Proxy
- DOMAIN-SUFFIX,thinkgeek.com,Proxy
- DOMAIN-SUFFIX,tracfone.com,Proxy
- DOMAIN-SUFFIX,uploader.jp,Proxy
- DOMAIN-SUFFIX,vevo.com,Proxy
- DOMAIN-SUFFIX,viu.tv,Proxy
- DOMAIN-SUFFIX,vk.com,Proxy
- DOMAIN-SUFFIX,vsco.co,Proxy
- DOMAIN-SUFFIX,xfinity.com,Proxy
- DOMAIN-SUFFIX,zattoo.com,Proxy
- DOMAIN,abc.com,Proxy
- DOMAIN,abc.go.com,Proxy
- DOMAIN,abc.net.au,Proxy
- DOMAIN,wego.here.com,Proxy
#USER-AGENT,Roam*,Proxy
# (The Most Popular Sites)
# > Apple
# > Apple URL Shortener
- DOMAIN-SUFFIX,appsto.re,Proxy
# > TestFlight
- DOMAIN,beta.itunes.apple.com,Proxy
# > iBooks Store download
- DOMAIN,books.itunes.apple.com,Proxy
# > iTunes Store Moveis Trailers
- DOMAIN,hls.itunes.apple.com,Proxy
# App Store Preview
- DOMAIN,itunes.apple.com,Proxy
# > Spotlight
- DOMAIN,api-glb-sea.smoot.apple.com,Proxy
# > Dictionary
- DOMAIN,lookup-api.apple.com,Proxy
#PROCESS-NAME,LookupViewService,Proxy
# > Google
- DOMAIN-SUFFIX,abc.xyz,Proxy
- DOMAIN-SUFFIX,android.com,Proxy
- DOMAIN-SUFFIX,androidify.com,Proxy
- DOMAIN-SUFFIX,dialogflow.com,Proxy
- DOMAIN-SUFFIX,autodraw.com,Proxy
- DOMAIN-SUFFIX,capitalg.com,Proxy
- DOMAIN-SUFFIX,certificate-transparency.org,Proxy
- DOMAIN-SUFFIX,chrome.com,Proxy
- DOMAIN-SUFFIX,chromeexperiments.com,Proxy
- DOMAIN-SUFFIX,chromestatus.com,Proxy
- DOMAIN-SUFFIX,chromium.org,Proxy
- DOMAIN-SUFFIX,creativelab5.com,Proxy
- DOMAIN-SUFFIX,debug.com,Proxy
- DOMAIN-SUFFIX,deepmind.com,Proxy
- DOMAIN-SUFFIX,firebaseio.com,Proxy
- DOMAIN-SUFFIX,getmdl.io,Proxy
- DOMAIN-SUFFIX,ggpht.com,Proxy
- DOMAIN-SUFFIX,gmail.com,Proxy
- DOMAIN-SUFFIX,gmodules.com,Proxy
- DOMAIN-SUFFIX,godoc.org,Proxy
- DOMAIN-SUFFIX,golang.org,Proxy
- DOMAIN-SUFFIX,gstatic.com,Proxy
- DOMAIN-SUFFIX,gv.com,Proxy
- DOMAIN-SUFFIX,gwtproject.org,Proxy
- DOMAIN-SUFFIX,itasoftware.com,Proxy
- DOMAIN-SUFFIX,madewithcode.com,Proxy
- DOMAIN-SUFFIX,material.io,Proxy
- DOMAIN-SUFFIX,polymer-project.org,Proxy
- DOMAIN-SUFFIX,admin.recaptcha.net,Proxy
- DOMAIN-SUFFIX,recaptcha.net,Proxy
- DOMAIN-SUFFIX,shattered.io,Proxy
- DOMAIN-SUFFIX,synergyse.com,Proxy
- DOMAIN-SUFFIX,tensorflow.org,Proxy
- DOMAIN-SUFFIX,tiltbrush.com,Proxy
- DOMAIN-SUFFIX,waveprotocol.org,Proxy
- DOMAIN-SUFFIX,waymo.com,Proxy
- DOMAIN-SUFFIX,webmproject.org,Proxy
- DOMAIN-SUFFIX,webrtc.org,Proxy
- DOMAIN-SUFFIX,whatbrowser.org,Proxy
- DOMAIN-SUFFIX,widevine.com,Proxy
- DOMAIN-SUFFIX,x.company,Proxy
- DOMAIN-SUFFIX,youtu.be,Proxy
- DOMAIN-SUFFIX,yt.be,Proxy
- DOMAIN-SUFFIX,ytimg.com,Proxy
# > Steam
- DOMAIN,media.steampowered.com,Proxy
- DOMAIN,store.steampowered.com,Proxy
# > Other
- DOMAIN-SUFFIX,0rz.tw,Proxy
- DOMAIN-SUFFIX,4bluestones.biz,Proxy
- DOMAIN-SUFFIX,9bis.net,Proxy
- DOMAIN-SUFFIX,allconnected.co,Proxy
- DOMAIN-SUFFIX,amazonaws.com,Proxy
- DOMAIN-SUFFIX,aol.com,Proxy
- DOMAIN-SUFFIX,bcc.com.tw,Proxy
- DOMAIN-SUFFIX,bit.ly,Proxy
- DOMAIN-SUFFIX,bitshare.com,Proxy
- DOMAIN-SUFFIX,blog.jp,Proxy
- DOMAIN-SUFFIX,blogimg.jp,Proxy
- DOMAIN-SUFFIX,blogtd.org,Proxy
- DOMAIN-SUFFIX,broadcast.co.nz,Proxy
- DOMAIN-SUFFIX,camfrog.com,Proxy
- DOMAIN-SUFFIX,cfos.de,Proxy
- DOMAIN-SUFFIX,citypopulation.de,Proxy
- DOMAIN-SUFFIX,cloudfront.net,Proxy
- DOMAIN-SUFFIX,ctitv.com.tw,Proxy
- DOMAIN-SUFFIX,cuhk.edu.hk,Proxy
- DOMAIN-SUFFIX,cusu.hk,Proxy
- DOMAIN-SUFFIX,discuss.com.hk,Proxy
- DOMAIN-SUFFIX,dropboxapi.com,Proxy
- DOMAIN-SUFFIX,edditstatic.com,Proxy
- DOMAIN-SUFFIX,flickriver.com,Proxy
- DOMAIN-SUFFIX,focustaiwan.tw,Proxy
- DOMAIN-SUFFIX,free.fr,Proxy
- DOMAIN-SUFFIX,ftchinese.com,Proxy
- DOMAIN-SUFFIX,gigacircle.com,Proxy
- DOMAIN-SUFFIX,gov,Proxy
- DOMAIN-SUFFIX,hk-pub.com,Proxy
- DOMAIN-SUFFIX,hosting.co.uk,Proxy
- DOMAIN-SUFFIX,hwcdn.net,Proxy
- DOMAIN-SUFFIX,jtvnw.net,Proxy
- DOMAIN-SUFFIX,linksalpha.com,Proxy
- DOMAIN-SUFFIX,manyvids.com,Proxy
- DOMAIN-SUFFIX,myactimes.com,Proxy
- DOMAIN-SUFFIX,newsblur.com,Proxy
- DOMAIN-SUFFIX,now.im,Proxy
- DOMAIN-SUFFIX,redditlist.com,Proxy
- DOMAIN-SUFFIX,signal.org,Proxy
- DOMAIN-SUFFIX,sparknotes.com,Proxy
- DOMAIN-SUFFIX,streetvoice.com,Proxy
- DOMAIN-SUFFIX,ttvnw.net,Proxy
- DOMAIN-SUFFIX,tv.com,Proxy
- DOMAIN-SUFFIX,twitchcdn.net,Proxy
- DOMAIN-SUFFIX,typepad.com,Proxy
- DOMAIN-SUFFIX,udnbkk.com,Proxy
- DOMAIN-SUFFIX,whispersystems.org,Proxy
- DOMAIN-SUFFIX,wikia.com,Proxy
- DOMAIN-SUFFIX,wn.com,Proxy
- DOMAIN-SUFFIX,wolframalpha.com,Proxy
- DOMAIN-SUFFIX,x-art.com,Proxy
- DOMAIN-SUFFIX,yimg.com,Proxy
- DOMAIN-KEYWORD,dlercloud,Proxy
- DOMAIN-SUFFIX,dler.cloud,Proxy
# Local Area Network
- DOMAIN-KEYWORD,announce,DIRECT
- DOMAIN-KEYWORD,torrent,DIRECT
- DOMAIN-KEYWORD,tracker,DIRECT
- DOMAIN-SUFFIX,smtp,DIRECT
- DOMAIN-SUFFIX,local,DIRECT
- IP-CIDR,192.168.0.0/16,DIRECT
- IP-CIDR,10.0.0.0/8,DIRECT
- IP-CIDR,172.16.0.0/12,DIRECT
- IP-CIDR,127.0.0.0/8,DIRECT
- IP-CIDR,100.64.0.0/10,DIRECT
# > IQIYI
- IP-CIDR,101.227.0.0/16,AsianTV
- IP-CIDR,101.224.0.0/13,AsianTV
- IP-CIDR,119.176.0.0/12,AsianTV
# > Youku
- IP-CIDR,106.11.0.0/16,AsianTV
# > Telegram
- IP-CIDR,67.198.55.0/24,Proxy
- IP-CIDR,91.108.4.0/22,Proxy
- IP-CIDR,91.108.8.0/22,Proxy
- IP-CIDR,91.108.12.0/22,Proxy
- IP-CIDR,91.108.16.0/22,Proxy
- IP-CIDR,91.108.56.0/22,Proxy
- IP-CIDR,109.239.140.0/24,Proxy
- IP-CIDR,149.154.160.0/20,Proxy
- IP-CIDR,205.172.60.0/22,Proxy
# (Extra IP-CIRD)
# > Google
- IP-CIDR,35.190.247.0/24,Proxy
- IP-CIDR,64.233.160.0/19,Proxy
- IP-CIDR,66.102.0.0/20,Proxy
- IP-CIDR,66.249.80.0/20,Proxy
- IP-CIDR,72.14.192.0/18,Proxy
- IP-CIDR,74.125.0.0/16,Proxy
- IP-CIDR,108.177.8.0/21,Proxy
- IP-CIDR,172.217.0.0/16,Proxy
- IP-CIDR,173.194.0.0/16,Proxy
- IP-CIDR,209.85.128.0/17,Proxy
- IP-CIDR,216.58.192.0/19,Proxy
- IP-CIDR,216.239.32.0/19,Proxy
# > Facebook
- IP-CIDR,31.13.24.0/21,Proxy
- IP-CIDR,31.13.64.0/18,Proxy
- IP-CIDR,45.64.40.0/22,Proxy
- IP-CIDR,66.220.144.0/20,Proxy
- IP-CIDR,69.63.176.0/20,Proxy
- IP-CIDR,69.171.224.0/19,Proxy
- IP-CIDR,74.119.76.0/22,Proxy
- IP-CIDR,103.4.96.0/22,Proxy
- IP-CIDR,129.134.0.0/17,Proxy
- IP-CIDR,157.240.0.0/17,Proxy
- IP-CIDR,173.252.64.0/19,Proxy
- IP-CIDR,173.252.96.0/19,Proxy
- IP-CIDR,179.60.192.0/22,Proxy
- IP-CIDR,185.60.216.0/22,Proxy
- IP-CIDR,204.15.20.0/22,Proxy
# > Twitter
- IP-CIDR,69.195.160.0/19,Proxy
- IP-CIDR,104.244.42.0/21,Proxy
- IP-CIDR,192.133.76.0/22,Proxy
- IP-CIDR,199.16.156.0/22,Proxy
- IP-CIDR,199.59.148.0/22,Proxy
- IP-CIDR,199.96.56.0/21,Proxy
- IP-CIDR,202.160.128.0/22,Proxy
- IP-CIDR,209.237.192.0/19,Proxy
# GeoIP China
- GEOIP,CN,Domestic
- MATCH,Others

@ -0,0 +1,25 @@
#!MANAGED-CONFIG {$userapiUrl}
#---------------------------------------------------#
## 更新:{date("Y-m-d h:i:s")}
#---------------------------------------------------#
[General]
loglevel = notify
dns-server = system, 119.29.29.29, 223.6.6.6, 80.80.80.80
skip-proxy = 127.0.0.1, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, 17.0.0.0/8, localhost, *.local, *.crashlytics.com
udp-replay = true
[Proxy]
🚀 Direct = direct
{$All_Proxy}
[Proxy Group]
{$ProxyGroups}
[Rule]
{include file='rule/PROXY.conf'}
{include file='rule/DIRECT.conf'}
GEOIP,CN,🍂 Domestic
FINAL,☁️ Others

@ -0,0 +1,80 @@
#!MANAGED-CONFIG {$userapiUrl}
#---------------------------------------------------#
## 更新:{date("Y-m-d h:i:s")}
#---------------------------------------------------#
[General]
loglevel = notify
dns-server = system, 119.29.29.29, 223.6.6.6, 80.80.80.80
skip-proxy = 127.0.0.1, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, 17.0.0.0/8, localhost, *.local, *.crashlytics.com
external-controller-access = MixChina@0.0.0.0:8233
allow-wifi-access = true
enhanced-mode-by-rule = false
exclude-simple-hostnames = true
ipv6 = true
replica = false
{if $surge >= 3}
http-listen = 0.0.0.0:8234
socks5-listen = 0.0.0.0:8235
internet-test-url = http://baidu.com
proxy-test-url = http://bing.com
test-timeout = 3
{else}
interface = 0.0.0.0
socks-interface = 0.0.0.0
port = 8234
socks-port = 8235
{/if}
[Replica]
hide-apple-request = true
hide-crashlytics-request = true
hide-udp = false
use-keyword-filter = false
[Proxy]
🚀 Direct = direct
{$All_Proxy}
[Proxy Group]
{$ProxyGroups}
[Rule]
{if $surge >= 3}
RULE-SET,SYSTEM,🍎 Only
RULE-SET,https://raw.githubusercontent.com/lhie1/Rules/master/Surge3/Proxy.list,🍃 Proxy
RULE-SET,https://raw.githubusercontent.com/lhie1/Rules/master/Surge3/Domestic.list,🍂 Domestic
RULE-SET,LAN,DIRECT
{else}
{include file='rule/Apple.conf'}
{include file='rule/PROXY.conf'}
{include file='rule/DIRECT.conf'}
{/if}
GEOIP,CN,🍂 Domestic
FINAL,☁️ Others,dns-failed
[Host]
localhost = 127.0.0.1
syria.sy = 127.0.0.1
{literal}
[URL Rewrite]
// Google_Service_HTTPS_Jump
^https?:\/\/(www\.)?g\.cn https://www.google.com 302
^https?:\/\/(www\.)?google\.cn https://www.google.com 302
// Wiki
^https?:\/\/.+.(m\.)?wikipedia\.org/wiki http://www.wikiwand.com/en 302
^https?:\/\/zh.(m\.)?wikipedia\.org/(zh-hans|zh-sg|zh-cn|zh(?=/)) http://www.wikiwand.com/zh 302
^https?:\/\/zh.(m\.)?wikipedia\.org/zh-[a-zA-Z]{2,} http://www.wikiwand.com/zh-hant 302
{/literal}
[Header Rewrite]
^https?://www.zhihu.com/question/ header-replace User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.45 Safari/537.36
[MITM]
skip-server-cert-verify = true
hostname = api.zhihu.com, www.zhihu.com
ca-passphrase = GeekQu
ca-p12 = MIIKKgIBAzCCCfQGCSqGSIb3DQEHAaCCCeUEggnhMIIJ3TCCBE8GCSqGSIb3DQEHBqCCBEAwggQ8AgEAMIIENQYJKoZIhvcNAQcBMBwGCiqGSIb3DQEMAQYwDgQISSU7qfQ4bmoCAggAgIIECHnanV7K/vxPK6pjGuKWFiqp6/PK/zvUxUio9U2gO1roW6vrZcIkSKqJcaezIokiQMiVH/e5Iuu2Cblj87UsE6spMHG79ywT08KTHHVym3PfMLLNo+P03Tb3LKfzpbkmsYT6QcYnvzatATSxn37chBnCtCT0/qrQZSQslsjayEQbimGHV8iKQNVwrHu9e85GSDVShJ4ql8e/K73+ioUa4K7U6Bb2TurzvxUq+UWlrXJkCQVO4RwFU1h73+dVqxOxIjvchh3tKAmu8Gt1q5NKHvDO+JuIyv0HtCx+zo7ZEkAVnz8OKg72tbdRve32qPM503omxozZM6mVFVDKx95PyGntlEDcWbpLtkttDkk0vjJZGf98ebumdXTccXN4yO5ymzaq47BSBB5IGYrWdVLA4l/gdDC+8lBRBZ1MkEwS/rMyyD8cacBW4rf7ECyKbYYcS5scaKJnMRP62KTxzzlMDT55U0KPiX6XKK6MWxexvILCuBbKOy4V6j2/+svoBD/FobbhLkQdHELYgIpgBXVcNQPy0aUihP7zYoQ4jtxbcRBwEaqEPHbY8QRpL3fTNuXegnAEzUXiPjfmVcYXlHxyj9OK4PWHH24SvqVWkHsMnSJFmzxU6XqWAUIw2IfOxFfY/9/swRfsNTRQZm6awx6dHDXy/GFAVVbYnyZi8Oh7ZlMQbdQ2bGncEST6PlDyXsxGCp9t/YFOuWY3kMmg8fLfV+IzNcqOoaw45MvZFGaULE/rou1p10rsnQMJDf511uzDEldWzKAJQDYVcSy2qHYlrIFs8NXUts5mH5NtE60xK+zVgqltzKqKYzIfWUXW1jTd/3KFTxs4cS8lHus/b/65qZWf9hwG1823Qi8a1sFCcLKY0G8AclBxcE8J7TUtyDgSh1wS9Bag4maRLJOrb/OkveVGLr8cGASvVIUhCI4XKzC55DOkIAWI5ICUgQT0iPlRNTN3JZG0zOEJY2cyq3BjZhtoYbqJc9pHxvcnXS/R2qrc9Z/UKJA7kSRNQ6xGvnyF8x0HI7RDpAinsseTRM+b2vkUPDEMfqkv0amG8YRcKD5zR8AZZrFh7KVAi/emUd5RIc4xJ5YHXYmoJwVonOUqpyhgHENobcWvAltvKEcNWjCAtvfQD0JnqKalBZDNjWRSadVakOFzgGErWWX/nGlcbuhVpUEaX75lNkFPxk1lurWd3LS676j/8pFjwlK51LhK0GsQH5NbL/WHdGwjJYWRNUU43ayojHEl7idK8dplvlLwHdQfq62cLbH+22nWipABh2mYT8nebyBjylJG+CS4q0Xo5/EOh9Bc6MDaBMU1q/hIZI9FqhX0JcXwQ8DtmJPEkzh0lcd8tsrOE70Pkh0ET75onOczMAyCCTCCBYYGCSqGSIb3DQEHAaCCBXcEggVzMIIFbzCCBWsGCyqGSIb3DQEMCgECoIIE7jCCBOowHAYKKoZIhvcNAQwBAzAOBAiBlNdONX/ZKgICCAAEggTI7Ius00a/xRACerwGZdBh/dmILnN82dQ5KGabg8//Lq9h0BA+NcPDCpH+fXZYU0G3Kqo6tNvzN5Lb6IiZy9K4A1jXJjRE6jvkg6Zk4DSfcFwlrLpB1b1JJa9jIRtIjj5Y6T1h+FXHMPRZVf6pkwko/NAXJcXhHQ3eXbWHDzGb06Uo9hcFdjwJCjnSk+SzXAhUUyMJ+bJvdoyGwZGswKZ/Kyalp33eIq2A52wAZ+e2auKJdfK0x+obT3Wr7Zef5HfQFymXoo/3xlfy1xrp7ynj2dNn0bJDekmpnlFD2V+Z9s6nyE5oVqNOwHpCt+MU0P0u97K5Yr10pzsLF9NA/zVzTE3unkk8wFXgxBDbZrkgPMiai+9F+3TaQDIg+1FFPrG2HnThRO99fhCw6qdm+3nl/YOdll4NIEI3aJOc+J6XVn7H7cSupG2DjgHsj10ArJhTVTIaQQRcadT2htTizsClEHjD3RIgx9j7fk3bjEIwybJiQQaZhq0NPmDVh7Tq038XYZWwiwSPQlBY0QDPx00iYDVQWP+UwjqtkHn4f5P6VNHKQVA1NGqhi0NkD43Mivs37kjsRzg34OjjTSEXtAkkHAb4ayKTUbfnwgi3Yoyw8SQu2wUCuLoMuyzvRMpkOLqP7nLzbI8WutRlq2gT+RMh6WJySsoaG8sUJq4lz4rKmBWqs+P4K1YYSbv8mT8+cD5nr9j43V9EH9C4oZ9+VX92aVByppyxsoRgxKmE0zYQ6dEvB3lHBeY51Gu2i+0fePNxXE7NkzUc6Ylw0clnYbZLboUeA0EOW80NNPGZrlq60578xRlUjxIGvTSCvpv+6fJleqv/IBaBAcQ53HdJGRlxpF80FtJh+oiYL8hM4Vsr00CcvZQSBex3sGGduSPzqdj8Z479w8WfCs5XF8Drf9cgVilf2mifcavUvsngqtYnhw140I9fR0RjFEOd/2XUFi6R+Yj3V4V/9aSWcw/lam5XgfilaqOAgxCMM2DnPXK0ATOEW73ozBCzL4jy54OYpNX+RsLk2T9geNzG42RO7TXq9CrV0cAo5QjYDs4slOcL6qxbYcBo6gp80959rk2RZ9F8fCqEYwtEBxyQ4w3R96m6AsV8C3erMeNxAvgah5g4Iq0MusHFuynHHoO8nlp3igx/xGj+DtxSw9AsDGJ/pwD7Fevog1DhoPeMn0BQ1+IxQJHufQ6tHNEkGBXTPISkdRa+oHx8DOtBZcMMvHllc8/MEDctGRvTcKXBmQSb3hWnVQvXDJ7R0nXeHdWkS3i3WzlYgW0KvKOXEF+ruP070QHU/Mzw4tbDiJEB0HgbTpLEpTAuOQHX+e+gfGJzCuROqke11LaXNrrFaycOd5cI5KPGldHHNyChFPkgdIBB5NLCEk1qo89jPJO9G6JsN412bYIxT8UceXWujkfR6bqAG9MlBqlQC2EBHIUQGuTAcgzK30EtUD/ZGeWTAs4GmFVEysUe76bB141a3qIJyKnd+t3EufvXCj/oQinJ+TkSkMc6O/vkHVJwVJ1AkGR9nRoZ3mIK3jKKhzvWxn6S+AzmOX4+9mmzz5mfiUiUMWHR2O7QMPpogEcEF5DSoFLprxp9zKgf2Y2gVUY4j07snigNLKokWxRtHgZTU2KxMWowIwYJKoZIhvcNAQkVMRYEFAbZu85upxbZOSqqmrJzvDh/3VmgMEMGCSqGSIb3DQEJFDE2HjQAVABoAG8AcgAgAFMAUwBMACAAQwBBACAAMQA4AC0AMAA2AC0AMQAzACAAMAAwADoANAA3MC0wITAJBgUrDgMCGgUABBT06JjTEYIxaVzmt4so+1SEMLvkJAQIDVK5cd4NVGU=

@ -15,6 +15,13 @@
<div class="card-main">
<div class="card-inner">
<p>系统中金额流转记录。</p>
<p>
今日流水:¥{$user->todayIncome()}<br/>
昨日流水:¥{$user->yesterdayIncome()}<br/>
这月流水:¥{$user->thisMonthIncome()}<br/>
上月流水:¥{$user->lastMonthIncome()}<br/>
总共流水:¥{$user->totalIncome()}
</p>
<p>显示表项:
{include file='table/checkbox.tpl'}
</p>

@ -0,0 +1,42 @@
{include file='admin/main.tpl'}
<main class="content">
<div class="content-header ui-content-header">
<div class="container">
<h1 class="content-heading">审计封禁记录</h1>
</div>
</div>
<div class="container">
<div class="col-lg-12 col-md-12">
<section class="content-inner margin-top-no">
<div class="card">
<div class="card-main">
<div class="card-inner">
<p>系统中所有审计封禁记录。</p>
<p>显示表项:
{include file='table/checkbox.tpl'}
</p>
</div>
</div>
</div>
<div class="table-responsive">
{include file='table/table.tpl'}
</div>
</div>
</div>
</main>
{include file='admin/footer.tpl'}
<script>
{include file='table/js_1.tpl'}
$(document).ready(function(){
{include file='table/js_2.tpl'}
});
</script>

@ -16,7 +16,32 @@
</div>
</div>
</div>
<div class="card">
<div class="card-main">
<div class="card-inner">
<div class="form-group form-group-label">
<label class="floating-label" for="userid">需要修改邀请者的用户</label>
<input class="form-control maxwidth-edit" id="userid" type="text">
<p class="form-control-guide"><i class="material-icons">info</i>填写用户的ID</p>
</div>
<div class="form-group form-group-label">
<label class="floating-label" for="refid">邀请者的ID</label>
<input class="form-control maxwidth-edit" id="refid" type="number">
</div>
</div>
<div class="card-action">
<div class="card-action-btn pull-left">
<a class="btn btn-flat waves-attach" id="confirm"><span class="icon">check</span>&nbsp;更改</a>
</div>
</div>
</div>
</div>
<div class="card">
<div class="card-main">
@ -104,6 +129,33 @@
}
})
})
$$.getElementById('confirm').addEventListener('click', () => {
$.ajax({
type: "POST",
url: "/admin/chginvite",
dataType: "json",
data: {
prefix: $$.getElementById('confirm').value,
userid: $$.getElementById('userid').value,
refid: $$.getElementById('refid').value,
},
success: data => {
if (data.ret) {
$("#result").modal();
$$.getElementById('msg').innerHTML = data.msg;
window.setTimeout("location.href='/admin/invite'", {$config['jump_delay']} );
} else {
$("#result").modal();
$$.getElementById('msg').innerHTML = data.msg;
}
// window.location.reload();
},
error: jqXHR => {
alert(`发生错误:${ldelim}jqXHR.status{rdelim}`);
}
})
})
window.addEventListener('load', () => {
{include file='table/js_2.tpl'}

@ -112,6 +112,9 @@
<li><a href="/admin/user"><i class="icon icon-lg">supervisor_account</i>&nbsp;用户列表</a></li>
<li><a href="/admin/relay"><i class="icon icon-lg">compare_arrows</i>&nbsp;中转规则</a></li>
<li><a href="/admin/invite"><i class="icon icon-lg">loyalty</i>&nbsp;邀请与返利</a></li>
{if $config['subscribeLog']=='true'}
<li><a href="/admin/subscribe"><i class="icon icon-lg">dialer_sip</i>&nbsp;订阅记录</a></li>
{/if}
<li><a href="/admin/login"><i class="icon icon-lg">text_fields</i>&nbsp;登录记录</a></li>
<li><a href="/admin/alive"><i class="icon icon-lg">important_devices</i>&nbsp;在线IP</a></li>
</ul>
@ -120,6 +123,7 @@
<ul class="menu-collapse collapse in" id="ui_menu_detect">
<li><a href="/admin/detect"><i class="icon icon-lg">account_balance</i>&nbsp;审计规则</a></li>
<li><a href="/admin/detect/log"><i class="icon icon-lg">assignment_late</i>&nbsp;审计记录</a></li>
<li><a href="/admin/detect/ban"><i class="icon icon-lg">text_fields</i>&nbsp;审计封禁</a></li>
</ul>

@ -0,0 +1,41 @@
{include file='admin/main.tpl'}
<main class="content">
<div class="content-header ui-content-header">
<div class="container">
<h1 class="content-heading">订阅记录</h1>
</div>
</div>
<div class="container">
<div class="col-lg-12 col-sm-12">
<section class="content-inner margin-top-no">
<div class="card">
<div class="card-main">
<div class="card-inner">
<p>这里是所有用户最近 {$config['subscribeLog_keep_days']} 天的订阅记录。</p>
<p>显示表项: {include file='table/checkbox.tpl'}</p>
</div>
</div>
</div>
<div class="table-responsive">
{include file='table/table.tpl'}
</div>
</div>
</div>
</main>
{include file='admin/footer.tpl'}
<script>
{include file='table/js_1.tpl'}
window.addEventListener('load', () => {
{include file='table/js_2.tpl'}
});
</script>

@ -84,6 +84,52 @@
</div>
</div>
<div class="card">
<div class="card-main">
<div class="card-inner">
<div class="form-group form-group-label">
<div class="checkbox switch">
<label for="detect_ban">
<input {if $edit_user->detect_ban==1}checked{/if} class="access-hide" id="detect_ban" type="checkbox"><span class="switch-toggle"></span>审计已封禁
</label>
</div>
</div>
<div class="form-group form-group-label">
<label class="floating-label" for="ban_time">手动封禁时长 (分钟),不封禁不要修改</label>
<input class="form-control maxwidth-edit" id="ban_time" type="text"
value="0">
</div>
<div class="form-group form-group-label">
<label class="floating-label" for="last_detect_ban_time">最后一次被封禁的时间</label>
<input class="form-control maxwidth-edit" id="last_detect_ban_time" type="text"
value="{$edit_user->last_detect_ban_time()}" readonly>
</div>
<div class="form-group form-group-label">
<label class="floating-label" for="relieve_time">当前解封时间</label>
<input class="form-control maxwidth-edit" id="relieve_time" type="text"
value="{$edit_user->relieve_time()}" readonly>
</div>
<div class="form-group form-group-label">
<label class="floating-label" for="detect_ban_number">累计封禁次数</label>
<input class="form-control maxwidth-edit" id="detect_ban_number" type="text"
value="{if $edit_user->detect_ban_number()==0}好耶!标杆用户,没有被审计封禁过耶{else}太坏了,这位用户累计被封禁过 {$edit_user->detect_ban_number()} 次呢{/if}" readonly>
</div>
<div class="form-group form-group-label">
<label class="floating-label" for="all_detect_number">累计违规次数</label>
<input class="form-control maxwidth-edit" id="all_detect_number" type="text"
value="{$edit_user->all_detect_number}" readonly>
</div>
</div>
</div>
</div>
<div class="card">
<div class="card-main">
<div class="card-inner">
@ -317,6 +363,12 @@
var ga_enable = 0;
}
if(document.getElementById('detect_ban').checked) {
var detect_ban=1;
} else {
var detect_ban=0;
}
$.ajax({
type: "PUT",
url: "/admin/user/{$edit_user->id}",
@ -339,6 +391,8 @@
enable,
is_admin,
ga_enable,
detect_ban: detect_ban,
ban_time: $$getValue('ban_time'),
ref_by: $$getValue('ref_by'),
forbidden_ip: $$getValue('forbidden_ip'),
forbidden_port: $$getValue('forbidden_port'),

@ -14,6 +14,9 @@
<div class="card-main">
<div class="card-inner">
<p>系统中所有用户的列表。</p>
<p>
付费用户:{$user->paidUserCount()}
</p>
<p>显示表项:
{include file='table/checkbox.tpl'}
</p>
@ -275,4 +278,4 @@
})
</script>
</script>

@ -0,0 +1,61 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta charset="UTF-8">
<title>{$appName}</title>
<link rel="stylesheet" href="//unpkg.com/docsify/themes/vue.css">
</head>
<body>
<nav>
<a href="/">回到主页</a>
<li><a href="/user/">用户中心</a>
<ul>
<li><a href="/user/edit">资料编辑</a></li>
<li><a href="/user/node">节点中心</a></li>
<li><a href="/user/code">充值捐赠</a></li>
<li><a href="/user/shop">套餐购买</a></li>
</ul>
</li>
</ul>
</nav>
<div id="docs">加载中...</div>
<script>
const root = window.location.host;
window.$docsify = {
name: '{$appName}',
alias: {
'/.*/_sidebar.md': '/_sidebar.md'
},
basePath: '{$basePath}',
auto2top: true,
loadSidebar: true,
autoHeader: true,
homepage: 'index.md',
nameLink: '/doc/',
el: '#docs',
copyCode: {
buttonText : '点击拷贝',
errorText : '拷贝失败',
successText: '拷贝成功'
},
{literal}
plugins: [
function(hook, vm) {
hook.beforeEach((markdown) => {
const result = markdown.replace(/\/sublink\?type=(\w+)/g, `//${root}/sublink?type=$1`)
return result
})
}
]
{/literal}
}
</script>
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
<script src="//unpkg.com/docsify/lib/plugins/emoji.js"></script>
<script src="//unpkg.com/docsify/lib/plugins/zoom-image.js"></script>
<script src="//unpkg.com/docsify-copy-code"></script>
<script src="//unpkg.com/prismjs/components/prism-yaml.min.js"></script>
</body>
</html>

@ -0,0 +1,89 @@
<div class="card-inner">
<p class="card-heading">输入充值金额后,点击下方的图标进行充值</p>
<div class="form-group form-group-label">
<label class="floating-label" for="bitpayx-amount">金额</label>
<input class="form-control" id="bitpayx-amount" type="number">
</div>
</div>
<div id="bitpayx-qrarea">
<button class="btn btn-flat waves-attach" id="bitpayx-alipay-submit" name="type" onclick="selectPayment('ALIPAY')"><img
src="data:image/svg+xml;base64,CjxzdmcgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDEwMDAgMTAwMCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTAwMCAxMDAwIiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPG1ldGFkYXRhPiDnn6Lph4/lm77moIfkuIvovb0gOiBodHRwOi8vd3d3LnNmb250LmNuLyA8L21ldGFkYXRhPjxnPjxwYXRoIGQ9Ik05OTAsNjgwLjlWMTk4LjVDOTkwLDk0LjQsOTA1LjcsMTAsODAxLjUsMTBIMTk4LjVDOTQuNCwxMCwxMCw5NC4zLDEwLDE5OC41djYwMy4xQzEwLDkwNS42LDk0LjMsOTkwLDE5OC41LDk5MGg2MDMuMWM5Mi44LDAsMTY5LjktNjcsMTg1LjUtMTU1LjNjLTUwLTIxLjUtMjY2LjctMTE1LjEtMzc5LjQtMTY5Yy04NS44LDEwNC0xNzUuOCwxNjYuNS0zMTEuMywxNjYuNXMtMjI2LTgzLjMtMjE1LjEtMTg1LjZjNy4xLTY3LjIsNTMuMi0xNzYuNiwyNTMtMTU3LjhjMTA1LjMsMTAsMTUzLjUsMjkuNSwyMzkuNCw1Ny45YzIyLjEtNDAuNyw0MC42LTg1LjUsNTQuNi0xMzMuMkgyNDcuNXYtMzcuN2gxODguM3YtNjcuOEgyMDZ2LTQxLjVoMjI5Ljh2LTk3LjhjMCwwLDIuMi0xNS4zLDE5LTE1LjNoOTQuM3YxMTMuMWgyNDV2NDEuNWgtMjQ1djY3LjhoMTk5LjdjLTE4LjMsNzQuOC00Ni4yLDE0My41LTgxLDIwMy41QzcyNS45LDYwMC4yLDk5MCw2ODAuOSw5OTAsNjgwLjlMOTkwLDY4MC45TDk5MCw2ODAuOXogTTI4MS40LDc2Ny42Yy0xNDMuMywwLTE2NS44LTkwLjUtMTU4LjMtMTI4LjJzNDktODYuNywxMjguNi04Ni43YzkxLjUsMCwxNzMuNSwyMy40LDI3MS44LDcxLjNDNDU0LjUsNzE0LDM2OS41LDc2Ny42LDI4MS40LDc2Ny42TDI4MS40LDc2Ny42eiIgc3R5bGU9ImZpbGw6IzU2YWJlNCI+PC9wYXRoPjwvZz48L3N2Zz4gIA=="
width="64" height="64"></button>
<button class="btn btn-flat waves-attach" id="bitpayx-wechat-submit" name="type" onclick="selectPayment('WECHAT')"><img
src="data:image/svg+xml;base64,CjxzdmcgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDEwMDAgMTAwMCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTAwMCAxMDAwIiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPG1ldGFkYXRhPiDnn6Lph4/lm77moIfkuIvovb0gOiBodHRwOi8vd3d3LnNmb250LmNuLyA8L21ldGFkYXRhPjxnPjxwYXRoIGQ9Ik0zMTIuNiwzMTUuN2MtMTkuMSwwLTM4LjMsMTIuNi0zOC4zLDMxLjhjMCwxOSwxOS4yLDMxLjcsMzguMywzMS43YzE5LjEsMCwzMS43LTEyLjgsMzEuNy0zMS44QzM0NC4zLDMyOC4yLDMzMS43LDMxNS43LDMxMi42LDMxNS43TDMxMi42LDMxNS43TDMxMi42LDMxNS43eiBNNDkwLjMsMzc5LjFjMTkuMiwwLDMxLjgtMTIuOCwzMS44LTMxLjdjMC0xOS4xLTEyLjYtMzEuOC0zMS44LTMxLjhjLTE5LDAtMzguMSwxMi42LTM4LjEsMzEuOEM0NTIuMywzNjYuNCw0NzEuNCwzNzkuMSw0OTAuMywzNzkuMUw0OTAuMywzNzkuMUw0OTAuMywzNzkuMXogTTU3Mi45LDUwMGMtMTIuNiwwLTI1LjQsMTIuNi0yNS40LDI1LjNjMCwxMi44LDEyLjgsMjUuNCwyNS40LDI1LjRjMTkuMiwwLDMxLjgtMTIuNiwzMS44LTI1LjRDNjA0LjcsNTEyLjYsNTkyLjIsNTAwLDU3Mi45LDUwMEw1NzIuOSw1MDBMNTcyLjksNTAweiBNNzEyLjcsNTAwYy0xMi42LDAtMjUuMywxMi43LTI1LjMsMjUuNGMwLDEyLjgsMTIuOCwyNS40LDI1LjMsMjUuNGMxOS4xLDAsMzEuOC0xMi42LDMxLjgtMjUuNEM3NDQuNSw1MTIuNiw3MzEuOCw1MDAsNzEyLjcsNTAwTDcxMi43LDUwMEw3MTIuNyw1MDB6IE04MDEuNSwxMEgxOTguNEM5NC40LDEwLDEwLDk0LjQsMTAsMTk4LjR2NjAzLjJDMTAsOTA1LjYsOTQuMyw5OTAsMTk4LjQsOTkwaDYwMy4xYzkyLjcsMCwxNjkuOC02NywxODUuNS0xNTUuMmwyLjktMTUzLjlWMTk4LjRDOTkwLDk0LjQsOTA1LjYsMTAsODAxLjUsMTBMODAxLjUsMTBMODAxLjUsMTB6IE0zOTUuMiw2MzkuOGMtMzEuNywwLTU3LjItNi40LTg4LjktMTIuN2wtODguOCw0NC41bDI1LjQtNzYuNGMtNjMuNi00NC41LTEwMS43LTEwMS44LTEwMS43LTE3MS41YzAtMTIwLjksMTE0LjQtMjE2LDI1NC4xLTIxNmMxMjQuOSwwLDIzNC4zLDc2LjEsMjU2LjMsMTc4LjRjLTguMi0wLjktMTYuNC0xLjUtMjQuNS0xLjVjLTEyMC43LDAtMjE1LjksOTAtMjE1LjksMjAxYzAsMTguNiwyLjksMzYuNCw3LjgsNTMuM0M0MTEsNjM5LjQsNDAzLjEsNjM5LjgsMzk1LjIsNjM5LjhMMzk1LjIsNjM5LjhMMzk1LjIsNjM5Ljh6IE03NjkuNyw3MjguOGwxOS4yLDYzLjVsLTY5LjctMzguM2MtMjUuNCw2LjQtNTAuOSwxMi43LTc2LjIsMTIuN2MtMTIwLjksMC0yMTYtODIuNS0yMTYtMTg0LjNjMC0xMDEuNiw5NS4xLTE4NC4zLDIxNi0xODQuM2MxMTQuMSwwLDIxNS44LDgyLjgsMjE1LjgsMTg0LjNDODU4LjgsNjM5LjgsODIwLjgsNjkwLjUsNzY5LjcsNzI4LjhMNzY5LjcsNzI4LjhMNzY5LjcsNzI4Ljh6IiBzdHlsZT0iZmlsbDojMTFjZDZlIj48L3BhdGg+PC9nPjwvc3ZnPiAg"
width="64" height="64"></button>
<button class="btn btn-flat waves-attach" id="bitpayx-crypto-submit" name="type" onclick="selectPayment('CRYPTO')"><img
src="http://bitpay.dev/img/mpay-zh.png"
height="64"></button>
</div>
<script>
var pid = 0;
function selectPayment(type) {
// TODO - make it easier - ALIPAY_WAP, ALIPAY_WEB
var price = parseFloat($("#bitpayx-amount").val());
console.log("将要使用 " + type + " 充值" + price + "元");
if (isNaN(price) || price < 1 || price >= 500) {
$("#readytopay").modal('hide');
$("#result").modal();
if (isNaN(price)) {
$("#msg").html("请输入正确的金额!");
}
else if (price < 1) {
$("#msg").html("请不要充值低于1元。");
}
else if (price > 500) {
$("#msg").html("请不要充值超过500元。");
}
return;
}
$('#readytopay').modal();
$("#readytopay").on('shown.bs.modal', function () {
$.ajax({
'url': "/user/payment/purchase",
'data': {
'price': price,
'type': type,
},
'dataType': 'json',
'type': "POST",
success: function (data) {
if (data.errcode == 0) {
$("#readytopay").modal('hide');
$("#msg").html("正在跳转到支付页面...");
window.location.href = data.url;
} else {
$("#result").modal();
$("#msg").html(data.errmsg);
}
}
});
});
}
function f() {
$.ajax({
type: "POST",
url: "/payment/status",
dataType: "json",
data: {
pid: pid
},
success: function (data) {
if (data.result) {
console.log(data);
$("#result").modal();
$("#msg").html("充值成功!");
window.setTimeout("location.href=window.location.href", {$config['jump_delay']});
}
},
error: function (jqXHR) {
console.log(jqXHR);
}
});
tid = setTimeout(f, 1000); //循环调用触发setTimeout
}
</script>

@ -15,6 +15,22 @@
<div class="card-inner">
<p>为了爱与和平,也同时为了系统的正常运行,特制定了如下过滤规则,当您使用节点执行这些动作时,您的通信就会被截断。</p>
<p>关于隐私:注意,我们仅用以下规则进行实时匹配和记录匹配到的规则,您的通信方向和通信内容我们不会做任何记录,请您放心。也请您理解我们对于这些不当行为的管理,谢谢。</p>
{if $config['enable_auto_detect_ban']=='true'}
{if $config['auto_detect_ban_type']=='1'}
<p>请注意,每当您触发审计规则 <strong>{$config['auto_detect_ban_number']}</strong> 次,将会被停止使用服务 <strong>{$config['auto_detect_ban_time']}</strong> 分钟</p>
{else}
<p>请注意,审计将以以下规则执行:</p>
<dl class="dl-horizontal">
{foreach $config['auto_detect_ban'] as $key => $value}
{if $value['type']=='kill'}
<dt>触碰审计规则达 {$key} 次,将会被直接删除账号</dt>
{else}
<dt>触碰审计规则达 {$key} 次,将被封禁 {$value['time']} 分钟</dt>
{/if}
{/foreach}
</dl>
{/if}
{/if}
</div>
</div>
</div>

@ -15,7 +15,10 @@
<div class="card">
<div class="card-main">
<div class="card-inner">
<p>您由于某些原因而被管理员禁用了账户,请联系管理员。</p>
<p>您由于以下原因而被管理员禁用了账户,请联系管理员。</p>
<p>
禁用原因:{$user->disableReason()}
</p>
{if $config["enable_admin_contact"] == 'true'}
<p>管理员联系方式:</p>
{if $config["admin_contact1"]!=null}

@ -10,6 +10,7 @@
<section class="content-inner margin-top-no">
<div class="col-xx-12 col-sm-6">
<div class="card margin-bottom-no">
<div class="card-main">
<div class="card-inner">
@ -38,6 +39,42 @@
</div>
{if $config['protocol_specify'] != 'true'}
<div class="card margin-bottom-no">
<div class="card-main">
<div class="card-inner">
<div class="card-inner">
<div class="cardbtn-edit">
<div class="card-heading">切换协议配置</div>
<button class="btn btn-flat" id="user_agreement_scheme-update"><span class="icon">check</span>&nbsp;</button>
</div>
<p>当前配置:
{foreach $schemes as $scheme}
{if $scheme['method'] == $user->method && $scheme['protocol'] == $user->protocol && $scheme['obfs'] == $user->obfs}
<code>{$scheme['name']}</code>
{/if}
{/foreach}
</p>
<div class="form-group form-group-label control-highlight-custom dropdown">
<button id="agreement_scheme" type="button" class="form-control maxwidth-edit" data-toggle="dropdown" value="0">请选择配置方案</button>
<ul class="dropdown-menu" aria-labelledby="agreement_scheme">
{foreach $schemes as $scheme}
<li><a href="#" class="dropdown-option" onclick="return false;" val="{$scheme['id']}" data="agreement_scheme">{$scheme['name']}</a></li>
{/foreach}
</ul>
</div>
</div>
</div>
</div>
</div>
{else}
<div class="card margin-bottom-no">
<div class="card-main">
<div class="card-inner">
@ -132,6 +169,23 @@
</div>
</div>
</div>
{/if}
<div class="card margin-bottom-no">
<div class="card-main">
<div class="card-inner">
<div class="card-inner">
<div class="cardbtn-edit">
<div class="card-heading">重置订阅链接</div>
<div class="reset-flex">
<a class="reset-link btn btn-brand-accent btn-flat" ><i class="icon">autorenew</i>&nbsp;</a>
</div>
</div>
<p>点击会重置您的订阅链接,此操作不可逆,请谨慎。</p>
</div>
</div>
</div>
</div>
</div>
@ -437,6 +491,8 @@
</div>
</div>
</div>
{include file='dialog.tpl'}
</section>
@ -537,6 +593,7 @@
})
})
</script>
<script>
$(document).ready(function () {
$("#portspecify").click(function () {
@ -704,7 +761,6 @@
})
</script>
<script>
$(document).ready(function () {
$("#relay-update").click(function () {
@ -760,7 +816,6 @@
})
</script>
<script>
$(document).ready(function () {
$("#ga-test").click(function () {
@ -784,7 +839,6 @@
})
</script>
<script>
$(document).ready(function () {
$("#ga-set").click(function () {
@ -838,7 +892,6 @@
})
</script>
<script>
$(document).ready(function () {
$("#mail-update").click(function () {
@ -900,7 +953,6 @@
})
</script>
<script>
$(document).ready(function () {
$("#method-update").click(function () {
@ -931,4 +983,49 @@
})
})
</script>
{/literal}
<script>
$(function () {
new Clipboard('.reset-link');
});
$(".reset-link").click(function () {
$("#result").modal();
$$.getElementById('msg').innerHTML = '已重置您的订阅链接,请变更或添加您的订阅链接!';
window.setTimeout("location.href='/user/url_reset'", {$config['jump_delay']});
});
</script>
<script>
$(document).ready(function () {
$("#user_agreement_scheme-update").click(function () {
$.ajax({
type: "POST",
url: "switchtype",
dataType: "json",
data: {
id: $("#agreement_scheme").val()
},
success: (data) => {
if (data.ret) {
$("#result").modal();
$$.getElementById('msg').innerHTML = data.msg;
window.setTimeout("location.href='/user/edit'", {$config['jump_delay']});
} else {
$("#result").modal();
$$.getElementById('msg').innerHTML = data.msg;
}
},
error: (jqXHR) => {
$("#result").modal();
$$.getElementById('msg').innerHTML = `${
data.msg
} 出现了一些错误`;
}
})
})
})
</script>

@ -1,5 +1,6 @@
{include file='user/main.tpl'}
{$ssr_prefer = URL::SSRCanConnect($user, 0)}
{$pre_user = URL::cloneUser($user)}
<style>
.table {
@ -150,6 +151,22 @@ table tr td:first-child {
<div class="col-xx-12 col-sm-5">
{if $user->detect_ban==1}
<div class="card">
<div class="card-main">
<div class="card-inner margin-bottom-no">
<p class="card-heading"><i class="icon icon-md">account_circle</i>账户违规</p>
{if $user->user_detect_ban_number()==0}
<p><strong>您好,您的账户因触碰了审计规则或其他原因,目前被暂停使用</strong></p>
{else}
<p><strong>您好,您的账户因触碰了 {$user->user_detect_ban_number()} 次审计规则,目前被暂停使用</strong></p>
{/if}
<p><strong>解除时间:{$user->relieve_time()}</strong></p>
</div>
</div>
</div>
{/if}
<div class="card">
<div class="card-main">
<div class="card-inner margin-bottom-no">
@ -266,32 +283,29 @@ table tr td:first-child {
<div class="card-main">
<div class="card-inner">
<div class="cardbtn-edit">
<div class="card-heading"><i class="icon icon-md">phonelink</i> 快速添加节点</div>
<div class="reset-flex"><span>重置订阅链接</span><a class="reset-link btn btn-brand-accent btn-flat"><i class="icon">autorenew</i>&nbsp;</a></div>
<div class="card-heading"><i class="icon icon-md">phonelink</i> 快速使用</div>
</div>
<nav class="tab-nav margin-top-no">
<ul class="nav nav-list">
<li {if $ssr_prefer}class="active"{/if}>
<a class="" data-toggle="tab" href="#all_ssr"><i class="icon icon-lg">airplanemode_active</i>&nbsp;SSR</a>
</li>
<li {if !$ssr_prefer}class="active"{/if}>
<a class="" data-toggle="tab" href="#all_ss"><i class="icon icon-lg">flight_takeoff</i>&nbsp;SS/SSD</a>
</li>
<li>
<a class="" data-toggle="tab" href="#all_v2ray"><i class="icon icon-lg">flight_land</i>&nbsp;V2RAY</a>
</li>
</ul>
</nav>
<div>
<div class="tab-content">
<div class="tab-pane fade {if $ssr_prefer}active in{/if}" id="all_ssr">
{$pre_user = URL::cloneUser($user)}
{$user = URL::getSSRConnectInfo($pre_user)}
{$ssr_url_all = URL::getAllUrl($pre_user, 0, 0)}
{$ssr_url_all_mu = URL::getAllUrl($pre_user, 1, 0)}
{if URL::SSRCanConnect($user)}
<nav class="tab-nav margin-top-no">
<ul class="nav nav-list">
<li class="active">
<a class="" data-toggle="tab" href="#sub_center"><i class="icon icon-lg">info_outline</i>&nbsp;订阅中心</a>
</li>
<li>
<a class="" data-toggle="tab" href="#info_center"><i class="icon icon-lg">flight_takeoff</i>&nbsp;连接信息</a>
</li>
</ul>
</nav>
<div class="card-inner">
<div class="tab-content">
<div class="tab-pane fade" id="info_center">
<p>您的链接信息:</p>
{if URL::SSRCanConnect($user)}
{$user = URL::getSSRConnectInfo($pre_user)}
<table class="table">
<tbody>
<tr>
@ -320,60 +334,13 @@ table tr td:first-child {
</tr>
</tbody>
</table>
<hr/>
<p>您好,您目前的 加密方式,混淆或协议 为 SSR 模式,请您选用支持 SSR 的客户端来连接,或者到 <a href="/user/edit">资料编辑</a> 页面修改后再来查看此处。</p>
<p>同时, ShadowsocksR 单端口多用户的连接不受您设置的影响,您可以在此使用相应的客户端进行连接</p>
<br>
{if $mergeSub!='true'}
<div>
<span class="icon icon-lg text-white">flash_auto</span> 普通节点订阅地址:
</div>
<div class="float-clear">
<input type="text" class="input form-control form-control-monospace cust-link col-xx-12 col-sm-8 col-lg-7" name="input1" value="{$subUrl}{$ssr_sub_token}?mu=0" readonly="true">
<button class="copy-text btn btn-subscription col-xx-12 col-sm-3 col-lg-2" type="button" data-clipboard-text="{$subUrl}{$ssr_sub_token}?mu=0">点击复制</button>
</div>
<br>
<div>
<span class="icon icon-lg text-white">flash_auto</span> 单端口节点订阅地址:
</div>
<div class="float-clear">
<input type="text" class="input form-control form-control-monospace cust-link col-xx-12 col-sm-8 col-lg-7" name="input1" value="{$subUrl}{$ssr_sub_token}?mu=1" readonly="true">
<button class="copy-text btn btn-subscription col-xx-12 col-sm-3 col-lg-2" type="button" data-clipboard-text="{$subUrl}{$ssr_sub_token}?mu=1">点击复制</button>
</div>
{else}
<div>
<span class="icon icon-lg text-white">flash_auto</span> 订阅地址:
</div>
<div class="float-clear">
<input type="text" class="input form-control form-control-monospace cust-link col-xx-12 col-sm-8 col-lg-7" name="input1" value="{$subUrl}{$ssr_sub_token}" readonly="true">
<button class="copy-text btn btn-subscription col-xx-12 col-sm-3 col-lg-2" type="button" data-clipboard-text="{$subUrl}{$ssr_sub_token}">点击复制</button>
</div>
{/if}
<br>
{if $mergeSub!='true'}
<button class="copy-text btn btn-subscription" type="button" data-clipboard-text="{$ssr_url_all}">点击复制 SSR 普通端口节点链接</button>
<button class="copy-text btn btn-subscription" type="button" data-clipboard-text="{$ssr_url_all_mu}">点击复制 SSR 单端口多用户链接</button>
{else}
<button class="copy-text btn btn-subscription" type="button" data-clipboard-text="{$ssr_url_all}">点击复制全部 SSR 节点链接</button>
{/if}
{elseif URL::SSCanConnect($user)}
{else}
<p>您好,您目前的 加密方式,混淆,或者协议设置在 ShadowsocksR 客户端下无法连接。请您选用 Shadowsocks
客户端来连接,或者到 资料编辑 页面修改后再来查看此处</p>
<p>同时, ShadowsocksR 单端口多用户的连接不受您设置的影响,您可以在此使用相应的客户端进行连接~</p>
<p>请注意,在当前状态下您的 SSR 订阅链接已经失效,您无法通过此种方式导入节点</p>
{/if}
</div>
<div class="tab-pane fade {if !$ssr_prefer}active in{/if}" id="all_ss">
{$user = URL::getSSConnectInfo($pre_user)}
{$ss_url_all_mu = URL::getAllUrl($pre_user, 1, 1)}
{$ss_url_all = URL::getAllUrl($pre_user, 0, 2)}
{$ssd_url_all =URL::getAllSSDUrl($user)}
{if URL::SSCanConnect($user)}
<table class="table">
<tbody>
<tr>
@ -398,135 +365,153 @@ table tr td:first-child {
</tr>
</tbody>
</table>
<br>
<div>
<span class="icon icon-lg text-white">flash_auto</span> SSD 节点订阅地址
</div>
<div class="float-clear">
<input type="text" class="input form-control form-control-monospace cust-link col-xx-12 col-sm-8 col-lg-7" name="input1" readonly value="{$subUrl}{$ssr_sub_token}?mu=3" readonly="true">
<button class="copy-text btn btn-subscription col-xx-12 col-sm-3 col-lg-2" type="button" data-clipboard-text="{$subUrl}{$ssr_sub_token}?mu=3">点击复制
</button>
</div>
<hr/>
<p>您好,您目前的 加密方式,混淆或协议 为 SS 模式,请您选用支持 SS 协议的客户端来连接,或者到 <a href="/user/edit">资料编辑</a> 页面修改后再来查看此处。</p>
<p>同时, Shadowsocks 单端口多用户的连接不受您设置的影响,您可以在此使用相应的客户端进行连接</p>
<br>
<button class="copy-text btn btn-subscription" type="button" data-clipboard-text="{$ssd_url_all}">点击复制全部 SSD 节点链接</button>
<button class="copy-text btn btn-subscription" type="button" data-clipboard-text="{$ss_url_all}">点击复制全部 SS 节点链接</button>
{else}
<p>您好,您目前的 加密方式,混淆,或者协议设置在 SS 客户端下无法连接。请您选用 SSR 客户端来连接,或者到 资料编辑 页面修改后再来查看此处</p>
<p>同时, Shadowsocks 单端口多用户的连接不受您设置的影响,您可以在此使用相应的客户端进行连接~</p>
{/if}
</div>
<div class="tab-pane fade" id="all_v2ray">
{$v2_url_all = URL::getAllVMessUrl($user)}
<div><span class="icon icon-lg text-white">flash_auto</span> 订阅地址:</div>
<div class="float-clear">
<input type="text" class="input form-control form-control-monospace cust-link col-xx-12 col-sm-8 col-lg-7" name="input1" value="{$subUrl}{$ssr_sub_token}?mu=2" readonly="true"/>
<button class="copy-text btn btn-subscription col-xx-12 col-sm-3 col-lg-2" type="button" data-clipboard-text="{$subUrl}{$ssr_sub_token}?mu=2">点击复制</button>
</div>
<br>
<button class="copy-text btn btn-subscription" type="button" data-clipboard-text="{$v2_url_all}">点击复制全部 VMess 链接</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="card">
<div class="card-main">
<div class="card-inner margin-bottom-no">
<div class="card-heading"><i class="icon icon-md">phonelink</i> 客户端下载</div>
<nav class="tab-nav margin-top-no">
<ul class="nav nav-list">
<li {if $ssr_prefer}class="active"{/if}>
<a class="" data-toggle="tab" href="#all_ssr_client"><i class="icon icon-lg">airplanemode_active</i>&nbsp;SSR</a>
</li>
<li {if !$ssr_prefer}class="active"{/if}>
<a class="" data-toggle="tab" href="#all_ss_client"><i class="icon icon-lg">flight_takeoff</i>&nbsp;SS/SSD</a>
</li>
<li>
<a class="" data-toggle="tab" href="#all_v2ray_client"><i class="icon icon-lg">flight_land</i>&nbsp;V2RAY</a>
</li>
{if $display_ios_class>=0}
<li>
<a class="" data-toggle="tab" href="#all_appid_client"><i class="icon icon-lg">phone_iphone</i>&nbsp;iOS 公共账号</a>
</li>
{/if}
</ul>
</nav>
<div class="card-inner">
<div class="tab-content">
<div class="tab-pane fade {if $ssr_prefer}active in{/if}" id="all_ssr_client">
<p><i class="icon icon-lg">laptop_windows</i> Windows:下载 <a href="/ssr-download/ssr-win.7z" target="_blank">ShadowsocksRR Windows</a> 或 <a href="/ssr-download/SSTap.7z" target="_blank">SSTap</a></p>
<p><i class="icon icon-lg">laptop_mac</i> macOS:<a href="/ssr-download/ssr-mac.dmg" target="_blank">下载 ShadowsocksX-NG-R8</a></p>
<p><i class="icon icon-lg">laptop_windows</i> Linux(GUI):<a href="/ssr-download/ssr-linux.AppImage" target="_blank">下载 Electron SSR</a></p>
<p><i class="icon icon-lg">android</i> Android:下载 <a href="/ssr-download/ssrr-android.apk">SSRR</a> 或 <a href="/ssr-download/ssr-android.apk">SSR</a></p>
<p><i class="icon icon-lg">phone_iphone</i> iOS:可以使用 Shadowrocket、Quantumult、Potatso 或 Potatso Lite</p>
<p><i class="icon icon-lg">router</i> Koolshare 固件路由器/软路由:前往 <a href="https://github.com/hq450/fancyss_history_package" target="_blank">FancySS 下载页面</a></p>
</div>
<div class="tab-pane fade {if !$ssr_prefer}active in{/if}" id="all_ss_client">
<p><i class="icon icon-lg">laptop_windows</i> Windows:下载 <a href="/ssr-download/ssd-win.7z" target="_blank">SSD Windows</a>,<a href="/ssr-download/ss-win.zip" target="_blank">Shadowsocks Windows</a> 或 <a href="/ssr-download/SSTap.7z" target="_blank">SSTap</a></p>
<p><i class="icon icon-lg">laptop_mac</i> macOS:<a href="/ssr-download/ss-mac.zip" target="_blank">下载 ShadowsocksX-NG</a></p>
<p><i class="icon icon-lg">laptop_windows</i> Linux(GUI):<a href="/ssr-download/ssr-linux.AppImage" target="_blank">下载 Electron SSR</a></p>
<p><i class="icon icon-lg">android</i> Android:下载 <a href="/ssr-download/ss-android.apk">Shadowsocks Android</a> 或 <a href="/ssr-download/ssd-android.apk">SSD Android</a>。如果需要启用混淆还需要下载 <a href="/ssr-download/ss-android-obfs.apk">Simple-Obfs 混淆插件</a>。</p>
<p><i class="icon icon-lg">phone_iphone</i> iOS:可以使用 Shadowrocket、Quantumult、Potatso 或 Potatso Lite</p>
<p><i class="icon icon-lg">router</i> Koolshare 固件路由器/软路由:前往 <a href="https://github.com/hq450/fancyss_history_package" target="_blank">FancySS 下载页面</a></p>
</div>
<div class="tab-pane fade" id="all_v2ray_client">
<p><i class="icon icon-lg">laptop_windows</i> Windows:下载 <a href="/ssr-download/v2rayn.zip" target="_blank">V2RayN</a></p>
<p><i class="icon icon-lg">laptop_mac</i> macOS:请前往 <a href="https://github.com/yanue/V2rayU">V2RayU 页面</a> 下载</p>
<p><i class="icon icon-lg">android</i> Android:下载 <a href="/ssr-download/ss-android.apk">V2RayNG</a></p>
<p><i class="icon icon-lg">phone_iphone</i> iOS:可以使用 Shadowrocket</p>
<p><i class="icon icon-lg">router</i> Koolshare 固件路由器/软路由:前往 <a href="https://github.com/hq450/fancyss_history_package/tree/master/fancyss_X64" target="_blank">FancySS 历史下载页面</a> 下载 v2ray 插件</p>
</div>
{else}
{if $display_ios_class>=0}
<div class="tab-pane fade" id="all_appid_client">
{if $user->class>=$display_ios_class && $user->get_top_up()>=$display_ios_topup}
<div>
<span class="icon icon-lg text-white">account_box</span>本站iOS账户:
</div>
<div class="float-clear">
<input type="text" class="input form-control form-control-monospace cust-link col-xx-12 col-sm-8 col-lg-7" name="input1" readonly value="{$ios_account}" readonly="true">
<button class="copy-text btn btn-subscription col-xx-12 col-sm-3 col-lg-2" type="button" data-clipboard-text="{$ios_account}">点击复制</button>
<p>您的账户连接信息存在异常,请联系管理员</p>
{/if}
</div>
<div class="tab-pane fade active in" id="sub_center">
<nav class="tab-nav margin-top-no">
<ul class="nav nav-list">
<li class="active">
<a class="" data-toggle="tab" href="#sub_center_general"><i class="icon icon-lg">desktop_windows</i>&nbsp;General</a>
</li>
<li>
<a class="" data-toggle="tab" href="#sub_center_windows"><i class="icon icon-lg">desktop_windows</i>&nbsp;Windows</a>
</li>
<li>
<a class="" data-toggle="tab" href="#sub_center_mac"><i class="icon icon-lg">laptop_mac</i>&nbsp;MacOS</a>
</li>
<li>
<a class="" data-toggle="tab" href="#sub_center_ios"><i class="icon icon-lg">phone_iphone</i>&nbsp;iOS</a>
</li>
<li>
<a class="" data-toggle="tab" href="#sub_center_android"><i class="icon icon-lg">android</i>&nbsp;Android</a>
</li>
</ul>
</nav>
<div class="tab-pane fade active in" id="sub_center_general">
<p><span class="icon icon-lg text-white">filter_1</span> [ SS ]:
<a id="general_ss" class="copy-config btn-dl" onclick=Copyconfig("/user/getUserAllURL?type=ss","#general_ss","")><i class="material-icons icon-sm">how_to_vote</i>全部 URL</a>
</p>
<hr/>
<p><span class="icon icon-lg text-white">filter_2</span> [ SSR ]:
<a class="copy-text btn-dl" data-clipboard-text="{$subInfo["ssr"]}&extend=1"><i class="material-icons icon-sm">how_to_vote</i>订阅链接</a>.<a id="general_ssr" class="copy-config btn-dl" onclick=Copyconfig("/user/getUserAllURL?type=ssr","#general_ssr","")><i class="material-icons icon-sm">how_to_vote</i>全部 URL</a>
</p>
<hr/>
<p><span class="icon icon-lg text-white">filter_3</span> [ VMess ]:
<a class="copy-text btn-dl" data-clipboard-text="{$subInfo["v2ray"]}&extend=1"><i class="material-icons icon-sm">how_to_vote</i>订阅链接</a>.<a id="general_v2ray" class="copy-config btn-dl" onclick=Copyconfig("/user/getUserAllURL?type=v2ray","#general_v2ray","")><i class="material-icons icon-sm">how_to_vote</i>全部 URL</a>
</p>
</div>
<div class="tab-pane fade" id="sub_center_windows">
<p><span class="icon icon-lg text-white">filter_1</span> <a class="btn-dl" href="{if $config["subscribe_client"]=='true'}/user/getPcClient?type=ss-win{else}https://github.com/shadowsocks/shadowsocks-windows/releases{/if}"><i class="material-icons">save_alt</i> 下载</a> SS - [ SS ]:</p>
<p>教程文档:<a class="btn-dl" href="/doc/#/Windows/Shadowsocks"><i class="material-icons icon-sm">how_to_vote</i>点击查看</a></p>
<p>使用方式:<a id="win_ss" class="copy-config btn-dl" onclick=Copyconfig("/user/getUserAllURL?type=ss","#win_ss","")><i class="material-icons icon-sm">how_to_vote</i>全部 URL</a></p>
<hr/>
<p><span class="icon icon-lg text-white">filter_2</span> <a class="btn-dl" href="{if $config["subscribe_client"]=='true'}/user/getPcClient?type=ssd-win{else}https://github.com/CGDF-Github/SSD-Windows/releases{/if}"><i class="material-icons">save_alt</i> 下载</a> SSD - [ SS ]:</p>
<p>教程文档:<a class="btn-dl" href="/doc/#/Windows/ShadowsocksD"><i class="material-icons icon-sm">how_to_vote</i>点击查看</a></p>
<p>使用方式:<a class="copy-text btn-dl" data-clipboard-text="{$subInfo["ssd"]}"><i class="material-icons icon-sm">how_to_vote</i>拷贝链接</a>.<a id="win_ssd" class="copy-config btn-dl" onclick=Copyconfig("/user/getUserAllURL?type=ssd","#win_ssd","")><i class="material-icons icon-sm">how_to_vote</i>全部 URL</a></p>
<hr/>
<p><span class="icon icon-lg text-white">filter_3</span> <a class="btn-dl" href="{if $config["subscribe_client"]=='true'}/user/getPcClient?type=ssr-win{else}https://github.com/shadowsocksrr/shadowsocksr-csharp/releases{/if}"><i class="material-icons">save_alt</i> 下载</a> SSR(R) - [ SS/SSR ]:</p>
<p>教程文档:<a class="btn-dl" href="/doc/#/Windows/ShadowsocksR"><i class="material-icons icon-sm">how_to_vote</i>点击查看</a></p>
<p>使用方式:<a class="copy-text btn-dl" data-clipboard-text="{$subInfo["ssr"]}&extend=1"><i class="material-icons icon-sm">how_to_vote</i>订阅链接</a>.<a id="win_ssr" class="copy-config btn-dl" onclick=Copyconfig("/user/getUserAllURL?type=ssr","#win_ssr","")><i class="material-icons icon-sm">how_to_vote</i>全部 URL</a></p>
<hr/>
<p><span class="icon icon-lg text-white">filter_4</span> <a class="btn-dl" href="https://github.com/Fndroid/clash_for_windows_pkg/releases"><i class="material-icons">save_alt</i> 下载</a> Clash for Windows - [ SS/VMess ]:</p>
<p>教程文档:<a class="btn-dl" href="/doc/#/Windows/Clash-for-Windows"><i class="material-icons icon-sm">how_to_vote</i>点击查看</a></p>
<p>使用方式:<a class="btn-dl" href="{$subInfo["clash"]}"><i class="material-icons icon-sm">how_to_vote</i>配置下载</a>.<a class="btn-dl" href="clash://install-config?url={urlencode($subInfo["clash"])}"><i class="material-icons icon-sm">how_to_vote</i>Clash for Windows 一键导入</a></p>
<hr/>
<p><span class="icon icon-lg text-white">filter_5</span> <a class="btn-dl" href="https://t.me/clashr4ssr"><i class="material-icons">save_alt</i> 下载</a> ClashR for Windows - [ SS/SSR/VMess ]:</p>
<p>教程文档:自行摸索</p>
<p>使用方式:<a class="btn-dl" href="{$subInfo["clashr"]}"><i class="material-icons icon-sm">how_to_vote</i>配置下载</a>.<a class="btn-dl" href="clash://install-config?url={urlencode($subInfo["clashr"])}"><i class="material-icons icon-sm">how_to_vote</i>ClashR for Windows 一键导入</a></p>
</div>
<div class="tab-pane fade" id="sub_center_mac">
<p><span class="icon icon-lg text-white">filter_1</span> <a class="btn-dl" href="https://nssurge.com/mac/v3/Surge-latest.zip"><i class="material-icons">save_alt</i> 下载</a> Surge - [ SS/VMess ]:</p>
<p>教程文档:<a class="btn-dl" href="/doc/#/macOS/Surge"><i class="material-icons icon-sm">how_to_vote</i>点击查看</a></p>
<p>使用方式:<a class="copy-text btn-dl" data-clipboard-text="{$subInfo["surge4"]}"><i class="material-icons icon-sm">how_to_vote</i>4.x 托管</a>.<a class="copy-text btn-dl" data-clipboard-text="{$subInfo["surge3"]}"><i class="material-icons icon-sm">how_to_vote</i>3.x 托管</a>.<a class="copy-text btn-dl" data-clipboard-text="{$subInfo["surge_node"]}"><i class="material-icons icon-sm">how_to_vote</i>3.x 节点</a>.<a class="copy-text btn-dl" data-clipboard-text="{$subInfo["surge2"]}"><i class="material-icons icon-sm">how_to_vote</i>2.x 托管</a></p>
<hr/>
<p><span class="icon icon-lg text-white">filter_2</span> <a class="btn-dl" href="https://github.com/yichengchen/clashX/releases"><i class="material-icons">save_alt</i> 下载</a> ClashX - [ SS/VMess ]:</p>
<p>教程文档:<a class="btn-dl" href="/doc/#/macOS/ClashX"><i class="material-icons icon-sm">how_to_vote</i>点击查看</a></p>
<p>使用方式:<a class="btn-dl" href="{$subInfo["clash"]}"><i class="material-icons icon-sm">how_to_vote</i>配置下载</a>.<a class="btn-dl" href="clash://install-config?url={urlencode($subInfo["clash"])}"><i class="material-icons icon-sm">how_to_vote</i>ClashX 一键导入</a></p>
<hr/>
<p><span class="icon icon-lg text-white">filter_3</span> <a class="btn-dl" href="https://t.me/clashr4ssr"><i class="material-icons">save_alt</i> 下载</a> ClashXR - [ SS/SSR/VMess ]:</p>
<p>教程文档:自行摸索</p>
<p>使用方式:<a class="btn-dl" href="{$subInfo["clashr"]}"><i class="material-icons icon-sm">how_to_vote</i>配置下载</a>.<a class="btn-dl" href="clash://install-config?url={urlencode($subInfo["clashr"])}"><i class="material-icons icon-sm">how_to_vote</i>ClashXR 一键导入</a></p>
</div>
<div class="tab-pane fade" id="sub_center_ios">
{if $display_ios_class>=0}
{if $user->class>=$display_ios_class && $user->get_top_up()>=$display_ios_topup}
<div><span class="icon icon-lg text-white">account_box</span> 本站iOS账户:</div>
<div class="float-clear">
<input type="text" class="input form-control form-control-monospace cust-link col-xx-12 col-sm-8 col-lg-7" name="input1" readonly value="{$ios_account}" readonly="true">
<button class="copy-text btn btn-subscription col-xx-12 col-sm-3 col-lg-2" type="button" data-clipboard-text="{$ios_account}">点击复制</button>
<br>
</div>
<div>
<span class="icon icon-lg text-white">lock</span> 本站iOS密码:
</div>
<div class="float-clear">
<input type="text" class="input form-control form-control-monospace cust-link col-xx-12 col-sm-8 col-lg-7" name="input1" readonly value="{$ios_password}" readonly="true">
<button class="copy-text btn btn-subscription col-xx-12 col-sm-3 col-lg-2" type="button" data-clipboard-text="{$ios_password}">点击复制</button>
</div>
<div><span class="icon icon-lg text-white">lock</span> 本站iOS密码:</div>
<div class="float-clear">
<input type="text" class="input form-control form-control-monospace cust-link col-xx-12 col-sm-8 col-lg-7" name="input1" readonly value="{$ios_password}" readonly="true">
<button class="copy-text btn btn-subscription col-xx-12 col-sm-3 col-lg-2" type="button" data-clipboard-text="{$ios_password}">点击复制</button>
<br>
</div>
<p>
<span class="icon icon-lg text-white">error</span>
<strong>禁止将账户分享给他人!</strong>
</p>
<br>
{else}
<p class="card-heading" align="center">
<i class="icon icon-lg">visibility_off</i> <b>等级至少为<code>{$display_ios_class}</code>且累计充值大于<code>{$display_ios_topup}</code>时可见,如需升级请<a href="/user/shop">点击这里</a>升级套餐</b>
</p>
{/if}
</div>
<p><span class="icon icon-lg text-white">error</span><strong>禁止将账户分享给他人!</strong></p>
<hr/>
{/if}
{/if}
<p><span class="icon icon-lg text-white">filter_1</span> <a class="btn-dl" href="https://itunes.apple.com/us/app/surge-3/id1442620678?ls=1&mt=8"><i class="material-icons">save_alt</i> 下载</a> Surge - [ SS/VMess ]:</p>
<p>教程文档:<a class="btn-dl" href="/doc/#/iOS/Surge"><i class="material-icons icon-sm">how_to_vote</i>点击查看</a></p>
<p>使用方式:<a class="btn-dl" href="surge3:///install-config?url={urlencode($subInfo["surge4"])}"><i class="material-icons icon-sm">how_to_vote</i>4.x 一键</a>.<a class="btn-dl" href="surge3:///install-config?url={urlencode($subInfo["surge3"])}"><i class="material-icons icon-sm">how_to_vote</i>3.x 一键</a>.<a class="copy-text btn-dl" data-clipboard-text="{$subInfo["surge_node"]}"><i class="material-icons icon-sm">how_to_vote</i>3.x 节点</a>.<a class="btn-dl" href="surge:///install-config?url={urlencode($subInfo["surge2"])}"><i class="material-icons icon-sm">how_to_vote</i>2.x 一键</a></p>
<hr/>
<p><span class="icon icon-lg text-white">filter_2</span> <a class="btn-dl" href="https://itunes.apple.com/us/app/kitsunebi-proxy-utility/id1446584073?ls=1&mt=8"><i class="material-icons">save_alt</i> 下载</a> Kitsunebi - [ SS/VMess ]:</p>
<p>教程文档:<a class="btn-dl" href="/doc/#/iOS/Kitsunebi"><i class="material-icons icon-sm">how_to_vote</i>点击查看</a></p>
<p>使用方式:<a class="copy-text btn-dl" data-clipboard-text="{$subInfo["kitsunebi"]}&extend=1"><i class="material-icons icon-sm">how_to_vote</i>SS + V2 混合订阅</a></p>
<hr/>
<p><span class="icon icon-lg text-white">filter_3</span> <a class="btn-dl" href="https://itunes.apple.com/us/app/quantumult/id1252015438?ls=1&mt=8"><i class="material-icons">save_alt</i> 下载</a> Quantumult - [ SS/SSR/VMess ]:</p>
<p>教程文档:<a class="btn-dl" href="/doc/#/iOS/Quantumult_sub"><i class="material-icons icon-sm">how_to_vote</i>点击查看</a></p>
<p>使用方式:<a class="copy-text btn-dl" data-clipboard-text="{$subInfo["quantumult_v2"]}&extend=1"><i class="material-icons icon-sm">how_to_vote</i>V2 订阅</a>.<a class="copy-text btn-dl" data-clipboard-text="{$subInfo["ssr"]}&extend=1"><i class="material-icons icon-sm">how_to_vote</i>SSR 订阅</a>.<a id="quan_sub" class="copy-config btn-dl" onclick=Copyconfig("{$subInfo["quantumult_sub"]}","#quan_sub","quantumult://settings?configuration=clipboard")><i class="material-icons icon-sm">how_to_vote</i>完整订阅配置</a>.<a id="quan_conf" class="copy-config btn-dl" onclick=Copyconfig("{$subInfo["quantumult_conf"]}","#quan_conf","quantumult://settings?configuration=clipboard")><i class="material-icons icon-sm">how_to_vote</i>完整策略组配置</a></p>
<hr/>
<p><span class="icon icon-lg text-white">filter_4</span> <a class="btn-dl" href="https://itunes.apple.com/us/app/shadowrocket/id932747118?mt=8"><i class="material-icons">save_alt</i> 下载</a> Shadowrocket - [ SS/SSR/VMess ]:</p>
<p>教程文档:<a class="btn-dl" href="/doc/#/iOS/Shadowrocket"><i class="material-icons icon-sm">how_to_vote</i>点击查看</a></p>
<p>使用方式:<a class="btn-dl" onclick=AddSub("{$subInfo["shadowrocket"]}","sub://")><i class="material-icons icon-sm">how_to_vote</i>SS(R) + V2 混合订阅</a></p>
</div>
<div class="tab-pane fade" id="sub_center_android">
<p><span class="icon icon-lg text-white">filter_1</span> <a class="btn-dl" href="https://github.com/CGDF-Github/SSD-Android/releases"><i class="material-icons">save_alt</i> 下载</a> SSD - [ SS ]:</p>
<p>教程文档:<a class="btn-dl" href="/doc/#/Android/ShadowsocksD"><i class="material-icons icon-sm">how_to_vote</i>点击查看</a></p>
<p>使用方式:<a class="copy-text btn-dl" data-clipboard-text="{$subInfo["ssd"]}"><i class="material-icons icon-sm">how_to_vote</i>拷贝链接</a>.<a id="android_ssd" class="copy-config btn-dl" onclick=Copyconfig("/user/getUserAllURL?type=ssd","#android_ssd","")><i class="material-icons icon-sm">how_to_vote</i>全部 URL</a></p>
<hr/>
<p><span class="icon icon-lg text-white">filter_2</span> <a class="btn-dl" href="#"><i class="material-icons">save_alt</i> 下载</a> SSR - [ SSR ]:</p>
<p>教程文档:<a class="btn-dl" href="/doc/#/Android/ShadowsocksR"><i class="material-icons icon-sm">how_to_vote</i>点击查看</a></p>
<p>使用方式:<a class="copy-text btn-dl" data-clipboard-text="{$subInfo["ssr"]}&extend=1"><i class="material-icons icon-sm">how_to_vote</i>拷贝链接</a></p>
<hr/>
<p><span class="icon icon-lg text-white">filter_3</span> <a class="btn-dl" href="https://github.com/2dust/v2rayNG/releases"><i class="material-icons">save_alt</i> 下载</a> V2rayNG - [ SS/VMess ]:</p>
<p>教程文档:<a class="btn-dl" href="/doc/#/Android/v2rayNG"><i class="material-icons icon-sm">how_to_vote</i>点击查看</a></p>
<p>使用方式:<a class="copy-text btn-dl" data-clipboard-text="{$subInfo["v2ray"]}&extend=1"><i class="material-icons icon-sm">how_to_vote</i>拷贝链接</a></p>
<hr/>
<p><span class="icon icon-lg text-white">filter_4</span> <a class="btn-dl" href="https://rink.hockeyapp.net/recruit/2113783c503645abb0a5ec6317e1a169"><i class="material-icons">save_alt</i> 下载</a> Surfboard - [ SS ]:</p>
<p>教程文档:<a class="btn-dl" href="/doc/#/Android/Surfboard"><i class="material-icons icon-sm">how_to_vote</i>点击查看</a></p>
<p>使用方式:<a class="copy-text btn-dl" data-clipboard-text="{$subInfo["surfboard"]}"><i class="material-icons icon-sm">how_to_vote</i>拷贝托管</a>.<a class="btn-dl" href="{$subInfo["surfboard"]}"><i class="material-icons icon-sm">how_to_vote</i>配置下载</a></p>
<hr/>
<p><span class="icon icon-lg text-white">filter_5</span> <a class="btn-dl" href="https://play.google.com/store/apps/details?id=fun.kitsunebi.kitsunebi4android&hl=zh"><i class="material-icons">save_alt</i> 下载</a> Kitsunebi - [ SS/VMess ]:</p>
<p>教程文档:<a class="btn-dl" href="/doc/#/Android/Kitsunebi"><i class="material-icons icon-sm">how_to_vote</i>点击查看</a></p>
<p>使用方式:<a class="copy-text btn-dl" data-clipboard-text="{$subInfo["kitsunebi"]}&extend=1"><i class="material-icons icon-sm">how_to_vote</i>SS + V2 混合订阅</a></p>
</div>
</div>
</div>
</div>
</div>
{/if}
</div>
</div>
</div>
</div>
</div>
@ -535,11 +520,7 @@ table tr td:first-child {
</div>
{include file='dialog.tpl'}
</div>
</div>
</section>
</section>
</div>
</main>
@ -548,29 +529,6 @@ table tr td:first-child {
<script src="https://cdn.jsdelivr.net/npm/shake.js@1.2.2/shake.min.js"></script>
<script>
;(function () {
'use strict'
let onekeysubBTN = document.querySelectorAll('[data-onekeyfor]');
for (let i = 0; i < onekeysubBTN.length; i++) {
onekeysubBTN[i].addEventListener('click', () => {
let onekeyId = onekeysubBTN[i].dataset.onekeyfor;
AddSub(onekeyId);
});
}
function AddSub(id) {
let url = $$getValue(id),
tmp = window.btoa(url);
tmp = tmp.substring(0, tmp.length);
url = "sub://" + tmp + "#";
window.location.href = url;
}
})();
</script>
<script>
function DateParse(str_date) {
@ -578,43 +536,12 @@ table tr td:first-child {
return new Date(str_date_splited[0], str_date_splited[1] - 1, str_date_splited[2], str_date_splited[3], str_date_splited[4], str_date_splited[5]);
}
/*
* Author: neoFelhz & CloudHammer
* https://github.com/CloudHammer/CloudHammer/make-sspanel-v3-mod-great-again
* License: MIT license & SATA license
*/
function CountDown() {
var levelExpire = DateParse("{$user->class_expire}");
var accountExpire = DateParse("{$user->expire_in}");
var nowDate = new Date();
var a = nowDate.getTime();
var b = levelExpire - a;
var c = accountExpire - a;
var levelExpireDays = Math.floor(b / (24 * 3600 * 1000));
var accountExpireDays = Math.floor(c / (24 * 3600 * 1000));
if (levelExpireDays < 0 || levelExpireDays > 315360000000) {
document.getElementById('days-level-expire').innerHTML = "无限期";
for (var i = 0; i < document.getElementsByClassName('label-level-expire').length; i += 1) {
document.getElementsByClassName('label-level-expire')[i].style.display = 'none';
}
} else {
document.getElementById('days-level-expire').innerHTML = levelExpireDays;
}
if (accountExpireDays < 0 || accountExpireDays > 315360000000) {
document.getElementById('days-account-expire').innerHTML = "无限期";
for (var i = 0; i < document.getElementsByClassName('label-account-expire').length; i += 1) {
document.getElementsByClassName('label-account-expire')[i].style.display = 'none';
}
} else {
document.getElementById('days-account-expire').innerHTML = accountExpireDays;
}
}
</script>
<script>
$(function () {
new Clipboard('.copy-text');
$(function(){
new Clipboard('.copy-text');
});
$(".copy-text").click(function () {
@ -622,41 +549,74 @@ table tr td:first-child {
$$.getElementById('msg').innerHTML = '已复制,请您继续接下来的操作';
});
$(function () {
new Clipboard('.reset-link');
});
function AddSub(url,jumpurl="") {
let tmp = window.btoa(url);
window.location.href = jumpurl + tmp;
}
$(".reset-link").click(function () {
$("#result").modal();
$$.getElementById('msg').innerHTML = '已重置您的订阅链接,请变更或添加您的订阅链接!';
window.setTimeout("location.href='/user/url_reset'", {$config['jump_delay']});
});
function Copyconfig(url,id,jumpurl="") {
$.ajax({
url: url,
type: 'get',
async: false,
success: function(res) {
if(res) {
$("#result").modal();
$("#msg").html("获取成功");
$(id).data('data', res);
console.log(res);
} else {
$("#result").modal();
$("#msg").html("获取失败,请稍后再试");
}
}
});
const clipboard = new Clipboard('.copy-config', {
text: function() {
return $(id).data('data');
}
});
clipboard.on('success', function(e) {
$("#result").modal();
if (jumpurl != "") {
$("#msg").html("复制成功,即将跳转到 APP");
window.setTimeout(function () {
window.location.href = jumpurl;
}, 1000);
} else {
$("#msg").html("复制成功");
}
}
);
clipboard.on("error",function(e){
console.error('Action:', e.action);
console.error('Trigger:', e.trigger);
console.error('Text:', e.text);
}
);
}
{if $user->transfer_enable-($user->u+$user->d) == 0}
{if $user->transfer_enable-($user->u+$user->d) == 0}
window.onload = function () {
$("#result").modal();
$$.getElementById('msg').innerHTML = '您的流量已经用完或账户已经过期了,如需继续使用,请进入商店选购新的套餐~';
};
{/if}
{/if}
{if $geetest_html == null}
{if $geetest_html == null}
var checkedmsgGE = '<p><a class="btn btn-brand disabled btn-flat waves-attach" href="#"><span class="icon">check</span>&nbsp;已签到</a></p>';
window.onload = function () {
var myShakeEvent = new Shake({
threshold: 15
});
myShakeEvent.start();
CountDown();
window.addEventListener('shake', shakeEventDidOccur, false);
function shakeEventDidOccur() {
if ("vibrate" in navigator) {
navigator.vibrate(500);
}
$.ajax({
type: "POST",
url: "/user/checkin",
@ -688,7 +648,6 @@ table tr td:first-child {
}
};
$(document).ready(function () {
$("#checkin").click(function () {
$.ajax({
@ -721,29 +680,22 @@ table tr td:first-child {
})
})
{else}
{else}
window.onload = function () {
var myShakeEvent = new Shake({
threshold: 15
});
myShakeEvent.start();
window.addEventListener('shake', shakeEventDidOccur, false);
function shakeEventDidOccur() {
if ("vibrate" in navigator) {
navigator.vibrate(500);
}
c.show();
}
};
var handlerPopup = function (captchaObj) {
c = captchaObj;
captchaObj.onSuccess(function () {
@ -793,12 +745,10 @@ table tr td:first-child {
offline: {if $geetest_html->success}0{else}1{/if} // 表示用户后台检测极验服务器是否宕机,与SDK配合,用户一般不需要关注
}, handlerPopup);
{/if}
{/if}
</script>
{if $recaptcha_sitekey != null}
<script src="https://recaptcha.net/recaptcha/api.js" async defer></script>
{/if}

@ -33,7 +33,7 @@
<a class="dropdown-toggle padding-left-no padding-right-no" data-toggle="dropdown">
{if $user->isLogin}
<span class="access-hide">{$user->user_name}</span>
<span class="icon icon-cd margin-right">account_circle</span>
<span class="avatar avatar-sm"><img src="{$user->gravatar}"></span>
</a>
<ul class="dropdown-menu dropdown-menu-right">
<li>
@ -44,6 +44,9 @@
<a class="padding-right-cd waves-attach" href="/user/logout"><span
class="icon icon-lg margin-right">exit_to_app</span>登出</a>
</li>
<li>
<a href="//en.gravatar.com/" target="view_window"><i class="icon icon-md t4-text">insert_photo</i>设置头像</a>
</li>
</ul>
{else}
<span class="access-hide">未登录</span>
@ -85,6 +88,12 @@
<a href="/user/trafficlog"><i class="icon icon-lg">hourglass_empty</i>&nbsp;流量记录</a>
</li>
{if $config['subscribeLog']=='true'}
<li>
<a href="/user/subscribe_log"><i class="icon icon-lg">important_devices</i>&nbsp;订阅记录</a>
</li>
{/if}
{if $config['enable_ticket']=='true'}
<li>
<a href="/user/ticket"><i class="icon icon-lg">question_answer</i>&nbsp;工单系统</a>
@ -116,7 +125,9 @@
</li>
<li>
<a href="/user/tutorial"><i class="icon icon-lg">start</i>&nbsp;使用教程</a>
<a href="/doc/">
<i class="icon icon-lg">start</i>&nbsp;使用教程
</a>
</li>
</ul>

@ -1,4 +1,4 @@
{include file='user/main.tpl'}
{include file='user/main.tpl'}
<script src="//cdn.jsdelivr.net/gh/SuicidalCat/canvasjs.js@v2.3.1/canvasjs.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.3.1"></script>
@ -25,7 +25,7 @@
<p>伪装方式:<span class="card-tag tag-green">{$v2server['type']}</span></p>
{/if}
{if ($v2server['net']=="ws" && $v2server['tls']=="tls")||$v2server['net']=="tls"}
{if ($v2server['net']=="ws" && $v2server['tls']=="tls")||$v2server['net']=="tls"||($v2server['net']=="tcp" && $v2server['tls']=="tls")}
<p>TLS:<span class="card-tag tag-green">TLS</span></p>
{/if}
<p>流量比例:<span class="card-tag tag-red">{$node['traffic_rate']}</span></p>
@ -168,7 +168,9 @@
<a href="javascript:void(0);"
onClick="urlChange('{$node['id']}',{$single_muport['server']->server},{if $relay_rule != null}{$relay_rule->id}{else}0{/if})">{$node['name']}
{if $relay_rule != null} - {$relay_rule->dist_node()->name}{/if} -
单端口 Shadowsocks - {$single_muport['server']->server} 端口
单端口 Shadowsocks -
{if strpos($node['server'], ';') !== false}{assign var='node_tmp' value=$tools->OutPort($node['server'], $node['name'], $single_muport['server']->server)}{$node_tmp['port']}{else}{$single_muport['server']->server}{/if}
端口
</a>
</div>
{/foreach}
@ -306,7 +308,7 @@
onClick="urlChange('{$node['id']}',{$single_muport['server']->server},{if $relay_rule != null}{$relay_rule->id}{else}0{/if})">{$node['name']}
{if $relay_rule != null} - {$relay_rule->dist_node()->name}{/if}
- 单端口 Shadowsocks -
{$single_muport['server']->server}
{if strpos($node['server'], ';') !== false}{assign var='node_tmp' value=$tools->OutPort($node['server'], $node['name'], $single_muport['server']->server)}{$node_tmp['port']}{else}{$single_muport['server']->server}{/if}
端口</a><span
class="label label-brand-accent">←点击节点查看配置信息</span>
</p>

@ -196,6 +196,7 @@
</p>
<p><a href="{URL::getItemUrl($ssr_item, 0)}">iOS 上用 Safari
打开点我即可直接添加</a></p>
<p><button class="copy-text btn btn-subscription" type="button" data-clipboard-text="{URL::getItemUrl($ssr_item, 0)}">拷贝SSR链接</button></p>
{/if}
{else}
<p>您好,您目前的 加密方式,混淆,或者协议设置在 ShadowsocksR 客户端下无法连接。请您选用 Shadowsocks 客户端来连接,或者到
@ -213,6 +214,7 @@
</p>
<p><a href="{URL::getItemUrl($ss_item, 1)}">iOS 上用 Safari 打开点我即可直接添加</a>
</p>
<p><button class="copy-text btn btn-subscription" type="button" data-clipboard-text="{URL::getItemUrl($ss_item, 1)}">拷贝SS链接</button></p>
{/if}
{else}
<p>您好,您目前的 加密方式,混淆,或者协议设置在 Shadowsocks 客户端下无法连接。请您选用 ShadowsocksR 客户端来连接,或者到
@ -319,7 +321,16 @@
<script src="https://cdn.jsdelivr.net/gh/davidshimjs/qrcodejs@gh-pages/qrcode.min.js"></script>
<script>
$(function(){
new Clipboard('.copy-text');
});
$(".copy-text").click(function () {
$("#result").modal();
$("#msg").html("已复制到您的剪贴板,请您继续接下来的操作。");
});
</script>
<script>
$(function () {
new Clipboard('.copy-text');

@ -0,0 +1,62 @@
{include file='user/main.tpl'}
<main class="content">
<div class="content-header ui-content-header">
<div class="container">
<h1 class="content-heading">订阅记录</h1>
</div>
</div>
<div class="container">
<div class="col-lg-12 col-md-12">
<section class="content-inner margin-top-no">
<div class="card">
<div class="card-main">
<div class="card-inner">
<p>您可在此查询您账户最近 {$config['subscribeLog_keep_days']} 天的订阅记录,确保您的账户没有被盗用。</p>
</div>
</div>
</div>
<div class="card">
<div class="card-main">
<div class="card-inner">
<div class="card-table">
<div class="table-responsive table-user">
{$logs->render()}
<table class="table">
<tr>
<th>ID</th>
<th>订阅类型</th>
<th>IP</th>
<th>归属地</th>
<th>时间</th>
<th>User-Agent</th>
</tr>
{foreach $logs as $log}
<tr>
<td>#{$log->id}</td>
<td>{$log->subscribe_type}</td>
<td>{$log->request_ip}</td>
{assign var="location" value=$iplocation->getlocation($log->request_ip)}
<td>{iconv("gbk", "utf-8//IGNORE", $location.country)} {iconv("gbk", "utf-8//IGNORE", $location.area)}</td>
<td>{$log->request_time}</td>
<td>{$log->request_user_agent}</td>
</tr>
{/foreach}
</table>
{$logs->render()}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
{include file='user/footer.tpl'}

@ -0,0 +1,20 @@
--
-- 审计封禁日志
--
CREATE TABLE IF NOT EXISTS `detect_ban_log` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`user_name` varchar(128) NOT NULL COMMENT '用户名',
`user_id` int(11) NOT NULL COMMENT '用户 ID',
`email` varchar(32) NOT NULL COMMENT '用户邮箱',
`detect_number` int(11) NOT NULL COMMENT '本次违规次数',
`ban_time` int(11) NOT NULL COMMENT '本次封禁时长',
`start_time` bigint(20) NOT NULL COMMENT '统计开始时间',
`end_time` bigint(20) NOT NULL COMMENT '统计结束时间',
`all_detect_number` int(11) NOT NULL COMMENT '累计违规次数',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='审计封禁日志';
ALTER TABLE `user` ADD `detect_ban` int(2) NOT NULL DEFAULT '0' AFTER `enable`;
ALTER TABLE `user` ADD `last_detect_ban_time` datetime DEFAULT '1989-06-04 00:05:00' AFTER `detect_ban`;
ALTER TABLE `user` ADD `all_detect_number` int(11) NOT NULL DEFAULT '0' AFTER `last_detect_ban_time`;

@ -697,4 +697,41 @@ ALTER TABLE `paylist`
ALTER TABLE `paylist`
MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;ALTER TABLE `user_traffic_log` CHANGE `u` `u` BIGINT(20) NOT NULL, CHANGE `d` `d` BIGINT(20) NOT NULL;
ALTER TABLE `user` ADD `discord` BIGINT NULL AFTER `telegram_id`;
ALTER TABLE `user` ADD `discord` BIGINT NULL AFTER `telegram_id`;
--
-- 用户订阅日志
--
CREATE TABLE IF NOT EXISTS `user_subscribe_log` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`user_name` varchar(128) NOT NULL COMMENT '用户名',
`user_id` int(11) NOT NULL COMMENT '用户 ID',
`email` varchar(32) NOT NULL COMMENT '用户邮箱',
`subscribe_type` varchar(20) DEFAULT NULL COMMENT '获取的订阅类型',
`request_ip` varchar(20) DEFAULT NULL COMMENT '请求 IP',
`request_time` datetime DEFAULT NULL COMMENT '请求时间',
`request_user_agent` text COMMENT '请求 UA 信息',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户订阅日志';
--
-- 审计封禁日志
--
CREATE TABLE IF NOT EXISTS `detect_ban_log` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`user_name` varchar(128) NOT NULL COMMENT '用户名',
`user_id` int(11) NOT NULL COMMENT '用户 ID',
`email` varchar(32) NOT NULL COMMENT '用户邮箱',
`detect_number` int(11) NOT NULL COMMENT '本次违规次数',
`ban_time` int(11) NOT NULL COMMENT '本次封禁时长',
`start_time` bigint(20) NOT NULL COMMENT '统计开始时间',
`end_time` bigint(20) NOT NULL COMMENT '统计结束时间',
`all_detect_number` int(11) NOT NULL COMMENT '累计违规次数',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='审计封禁日志';
ALTER TABLE `user` ADD `detect_ban` int(2) NOT NULL DEFAULT '0' AFTER `enable`;
ALTER TABLE `user` ADD `last_detect_ban_time` datetime DEFAULT '1989-06-04 00:05:00' AFTER `detect_ban`;
ALTER TABLE `user` ADD `all_detect_number` int(11) NOT NULL DEFAULT '0' AFTER `last_detect_ban_time`;

@ -0,0 +1,11 @@
CREATE TABLE IF NOT EXISTS `user_subscribe_log` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`user_name` varchar(128) NOT NULL COMMENT '用户名',
`user_id` int(11) NOT NULL COMMENT '用户 ID',
`email` varchar(32) NOT NULL COMMENT '用户邮箱',
`subscribe_type` varchar(20) DEFAULT NULL COMMENT '获取的订阅类型',
`request_ip` varchar(20) DEFAULT NULL COMMENT '请求 IP',
`request_time` datetime DEFAULT NULL COMMENT '请求时间',
`request_user_agent` text COMMENT '请求 UA 信息',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户订阅日志';

@ -5,318 +5,312 @@
//config迁移附注(由开发者填写本次config迁移后需要注意的地方,站长勿动)
//如需换行,直接换行即可,无需换行符
//【新增/删除】config无需写入迁移附注
$System_Config['config_migrate_notice']=
'enable_geetest_* 已变更为 enable_*_captcha
$_ENV['config_migrate_notice'] =
'enable_geetest_* 已变更为 enable_*_captcha
crisp已被替换为mylivechat
telegrma_qrcode被重命名为qrcode
';
$System_Config['version']='1'; //仅当涉及【需要修改config以外的文件】时才需要+1,站长勿动
$_ENV['version'] = '1'; //仅当涉及【需要修改config以外的文件】时才需要+1,站长勿动
//基本设置--------------------------------------------------------------------------------------------
$System_Config['key'] = '1145141919810'; //!!! 瞎 jb 修改此key为随机字符串确保网站安全 !!!
$System_Config['debug'] = true; //正式环境请确保为 false
$System_Config['appName'] = 'sspanel uim test'; //站点名称
$System_Config['baseUrl'] = 'http://sspanel.host:23480'; //站点地址
$System_Config['subUrl'] = $System_Config['baseUrl'].'/link/'; //订阅地址,如需和站点名称相同,请不要修改
$System_Config['muKey'] = 'NimaQu'; //用于校验魔改后端请求,可以随意修改,但请保持前后端一致,否则节点不能工作!
$System_Config['db_driver'] = 'mysql'; //数据库程序
$System_Config['db_host'] = 'localhost'; //数据库地址
$System_Config['db_database'] = 'sspanel'; //数据库名
$System_Config['db_username'] = 'root'; //数据库用户名
$System_Config['db_password'] = 'sspanel'; //用户名对应的密码
$_ENV['key'] = '1145141919810'; //!!! 瞎 jb 修改此key为随机字符串确保网站安全 !!!
$_ENV['debug'] = true; //正式环境请确保为 false
$_ENV['appName'] = 'sspanel uim test'; //站点名称
$_ENV['baseUrl'] = 'http://sspanel.host:23480'; //站点地址
$_ENV['subUrl'] = $_ENV['baseUrl'] . '/link/'; //订阅地址,如需和站点名称相同,请不要修改
$_ENV['muKey'] = 'NimaQu'; //用于校验魔改后端请求,可以随意修改,但请保持前后端一致,否则节点不能工作!
$_ENV['db_driver'] = 'mysql'; //数据库程序
$_ENV['db_host'] = 'localhost'; //数据库地址
$_ENV['db_database'] = 'sspanel'; //数据库名
$_ENV['db_username'] = 'root'; //数据库用户名
$_ENV['db_password'] = 'sspanel'; //用户名对应的密码
//邮件设置--------------------------------------------------------------------------------------------
$System_Config['mailDriver'] = 'none'; //发送邮件方式:none / mailgun / smtp / sendgrid
$System_Config['sendPageLimit']= 50; //发信分页 解决大站发公告超时问题
$_ENV['mailDriver'] = 'none'; //发送邮件方式:none / mailgun / smtp / sendgrid
$_ENV['sendPageLimit'] = 50; //发信分页 解决大站发公告超时问题
# mailgun
$System_Config['mailgun_key'] = '';
$System_Config['mailgun_domain'] = '';
$System_Config['mailgun_sender'] = '';
$_ENV['mailgun_key'] = '';
$_ENV['mailgun_domain'] = '';
$_ENV['mailgun_sender'] = '';
# smtp
$System_Config['smtp_host'] = '';
$System_Config['smtp_username'] = '';
$System_Config['smtp_port'] = '465';
$System_Config['smtp_name'] = '';
$System_Config['smtp_sender'] = '';
$System_Config['smtp_passsword'] = '';
$System_Config['smtp_ssl'] = 'true';
$_ENV['smtp_host'] = '';
$_ENV['smtp_username'] = '';
$_ENV['smtp_port'] = '465';
$_ENV['smtp_name'] = '';
$_ENV['smtp_sender'] = '';
$_ENV['smtp_passsword'] = '';
$_ENV['smtp_ssl'] = 'true';
# sendgrid
$System_Config['sendgrid_key'] = '';
$System_Config['sendgrid_sender'] = '';
$_ENV['sendgrid_key'] = '';
$_ENV['sendgrid_sender'] = '';
//备份设置--------------------------------------------------------------------------------------------
$System_Config['auto_backup_email']=''; //接收备份的邮箱
$System_Config['auto_backup_passwd']=''; //备份的压缩密码
$System_Config['backup_notify'] = 'false'; //备份通知到TG群中
$_ENV['auto_backup_email'] = ''; //接收备份的邮箱
$_ENV['auto_backup_passwd'] = ''; //备份的压缩密码
$_ENV['backup_notify'] = 'false'; //备份通知到TG群中
//用户注册设置-----------------------------------------------------------------------------------------
$System_Config['register_mode'] = 'open'; //注册模式。close:关闭,open:开放,invite:仅限邀请码
$System_Config['defaultTraffic'] = '1'; //用户初始流量 单位GB
$System_Config['user_expire_in_default']='3650'; //用户账户过期时间,在注册时设置。(天)
$System_Config['user_class_default']='0'; //用户注册等级,在注册时设置。
$System_Config['user_class_expire_default']='24'; //用户等级过期时间,在注册时设置。(小时)
$System_Config['user_conn']='0'; //用户注册客户端数量限制,0为不限制
$System_Config['user_speedlimit']='0'; //用户注册速度默认限制,0为不限制
$System_Config['reg_auto_reset_day']='0'; //注册时的流量重置日,0为不重置
$System_Config['reg_auto_reset_bandwidth']='0'; //需要重置的流量,0为不重置
$System_Config['ramdom_group']='0'; //注册时随机分组,注册时随机分配到的分组,多个分组请用英文半角逗号分隔。
$System_Config['reg_method']='rc4-md5'; //注册时默认加密方式
$System_Config['reg_protocol']='origin'; //注册时默认协议
$System_Config['reg_protocol_param']=''; //注册时默认协议参数
$System_Config['reg_obfs']='plain'; //注册时默认混淆方式
$System_Config['reg_obfs_param']=''; //注册时默认混淆参数
$System_Config['reg_forbidden_ip']='127.0.0.0/8,::1/128'; //注册时默认禁止访问IP列表,半角英文逗号分割
$System_Config['min_port']='10000'; //用户端口池最小值
$System_Config['max_port']='65535'; //用户端口池最大值
$System_Config['reg_forbidden_port']=''; //注册时默认禁止访问端口列表,半角英文逗号分割,支持端口段
$System_Config['mu_suffix']='microsoft.com'; //单端口多用户混淆参数后缀,可以随意修改,但请保持前后端一致
$System_Config['mu_regex']='%5m%id.%suffix'; //单端口多用户混淆参数表达式,%5m代表取用户特征 md5 的前五位,%id 代表用户id,%suffix 代表上面这个后缀。
$_ENV['register_mode'] = 'open'; //注册模式。close:关闭,open:开放,invite:仅限邀请码
$_ENV['defaultTraffic'] = '1'; //用户初始流量 单位GB
$_ENV['user_expire_in_default'] = '3650'; //用户账户过期时间,在注册时设置。(天)
$_ENV['user_class_default'] = '0'; //用户注册等级,在注册时设置。
$_ENV['user_class_expire_default'] = '24'; //用户等级过期时间,在注册时设置。(小时)
$_ENV['user_conn'] = '0'; //用户注册客户端数量限制,0为不限制
$_ENV['user_speedlimit'] = '0'; //用户注册速度默认限制,0为不限制
$_ENV['reg_auto_reset_day'] = '0'; //注册时的流量重置日,0为不重置
$_ENV['reg_auto_reset_bandwidth'] = '0'; //需要重置的流量,0为不重置
$_ENV['ramdom_group'] = '0'; //注册时随机分组,注册时随机分配到的分组,多个分组请用英文半角逗号分隔。
$_ENV['reg_method'] = 'rc4-md5'; //注册时默认加密方式
$_ENV['reg_protocol'] = 'origin'; //注册时默认协议
$_ENV['reg_protocol_param'] = ''; //注册时默认协议参数
$_ENV['reg_obfs'] = 'plain'; //注册时默认混淆方式
$_ENV['reg_obfs_param'] = ''; //注册时默认混淆参数
$_ENV['reg_forbidden_ip'] = '127.0.0.0/8,::1/128'; //注册时默认禁止访问IP列表,半角英文逗号分割
$_ENV['min_port'] = '10000'; //用户端口池最小值
$_ENV['max_port'] = '65535'; //用户端口池最大值
$_ENV['reg_forbidden_port'] = ''; //注册时默认禁止访问端口列表,半角英文逗号分割,支持端口段
$_ENV['mu_suffix'] = 'microsoft.com'; //单端口多用户混淆参数后缀,可以随意修改,但请保持前后端一致
$_ENV['mu_regex'] = '%5m%id.%suffix'; //单端口多用户混淆参数表达式,%5m代表取用户特征 md5 的前五位,%id 代表用户id,%suffix 代表上面这个后缀。
#邀请链接
$System_Config['inviteNum'] = '10'; //注册后的邀请链接可用次数
$System_Config['invite_get_money']='1'; //新用户通过私人邀请链接注册时,获得奖励金额(作为初始资金)
$System_Config['invite_price']='-1'; //用户购买邀请码所需要的价格,价格小于0时视为不开放购买
$System_Config['custom_invite_price']='-1'; //用户定制邀请码所需要的价格,价格小于0时视为不开放购买
$_ENV['inviteNum'] = '10'; //注册后的邀请链接可用次数
$_ENV['invite_get_money'] = '1'; //新用户通过私人邀请链接注册时,获得奖励金额(作为初始资金)
$_ENV['invite_price'] = '-1'; //用户购买邀请码所需要的价格,价格小于0时视为不开放购买
$_ENV['custom_invite_price'] = '-1'; //用户定制邀请码所需要的价格,价格小于0时视为不开放购买
#邮箱验证
$System_Config['enable_email_verify']='false'; //是否启用注册邮箱验证码
$System_Config['email_verify_ttl']='3600'; //邮箱验证码有效期
$System_Config['email_verify_iplimit']='10'; //验证码有效期内,单IP可请求验证码次数
$_ENV['enable_email_verify'] = 'false'; //是否启用注册邮箱验证码
$_ENV['email_verify_ttl'] = '3600'; //邮箱验证码有效期
$_ENV['email_verify_iplimit'] = '10'; //验证码有效期内,单IP可请求验证码次数
//已注册用户设置---------------------------------------------------------------------------------------
#基础
$System_Config['checkinMin'] = '1'; //用户签到最少流量 单位MB
$System_Config['checkinMax'] = '50'; //用户签到最多流量
$System_Config['auto_clean_uncheck_days']='-1'; //自动清理多少天没签到的0级用户,小于等于0时关闭
$System_Config['auto_clean_unused_days']='-1'; //自动清理多少天没使用的0级用户,小于等于0时关闭
$System_Config['auto_clean_min_money']='1'; //余额低于多少的0级用户可以被清理
$System_Config['code_payback']='20'; //充值返利百分比
$System_Config['invite_gift']='2'; //邀请新用户获得流量奖励,单位G
$System_Config['enable_bought_reset']='true'; //购买时是否重置流量
$System_Config['enable_bought_extend']='true'; //购买时是否延长等级期限(同等级配套)
$System_Config['port_price']='-1'; //用户随机重置端口所需要的价格,价格小于0时视为不开放购买
$System_Config['port_price_specify']='-1'; //用户指明钦定端口所需要的价格,价格小于0时视为不开放购买
$_ENV['checkinMin'] = '1'; //用户签到最少流量 单位MB
$_ENV['checkinMax'] = '50'; //用户签到最多流量
$_ENV['auto_clean_uncheck_days'] = '-1'; //自动清理多少天没签到的0级用户,小于等于0时关闭
$_ENV['auto_clean_unused_days'] = '-1'; //自动清理多少天没使用的0级用户,小于等于0时关闭
$_ENV['auto_clean_min_money'] = '1'; //余额低于多少的0级用户可以被清理
$_ENV['code_payback'] = '20'; //充值返利百分比
$_ENV['invite_gift'] = '2'; //邀请新用户获得流量奖励,单位G
$_ENV['enable_bought_reset'] = 'true'; //购买时是否重置流量
$_ENV['enable_bought_extend'] = 'true'; //购买时是否延长等级期限(同等级配套)
$_ENV['port_price'] = '-1'; //用户随机重置端口所需要的价格,价格小于0时视为不开放购买
$_ENV['port_price_specify'] = '-1'; //用户指明钦定端口所需要的价格,价格小于0时视为不开放购买
#高级
$System_Config['class_expire_reset_traffic']='0'; //等级到期时重置为的流量值,单位GB,小于0时不重置
$System_Config['account_expire_delete_days']='-1'; //账户到期几天之后会删除账户,小于0时不删除
$System_Config['enable_kill']='true'; //是否允许用户注销账户
$System_Config['notify_limit_mode'] = 'false'; //false为关闭,per为按照百分比提醒,mb为按照固定剩余流量提醒
$System_Config['notify_limit_value'] = '20'; //当上一项为per时,此处填写百分比;当上一项为mb时,此处填写流量
$System_Config['mergeSub'] = 'false'; //合并订阅设置 可选项 false / true
$_ENV['class_expire_reset_traffic'] = '0'; //等级到期时重置为的流量值,单位GB,小于0时不重置
$_ENV['account_expire_delete_days'] = '-1'; //账户到期几天之后会删除账户,小于0时不删除
$_ENV['enable_kill'] = 'true'; //是否允许用户注销账户
$_ENV['notify_limit_mode'] = 'false'; //false为关闭,per为按照百分比提醒,mb为按照固定剩余流量提醒
$_ENV['notify_limit_value'] = '20'; //当上一项为per时,此处填写百分比;当上一项为mb时,此处填写流量
$_ENV['mergeSub'] = 'false'; //合并订阅设置 可选项 false / true
//Bot 设置--------------------------------------------------------------------------------------------
#通用
$System_Config['qrcode']='zxing_local'; //二维码解码方式,online,phpzbar,zxing_online,zxing_local
$System_Config['finance_public']='false'; //财务报告是否向群公开
$System_Config['enable_welcome_message']='true'; //机器人发送欢迎消息
$_ENV['qrcode'] = 'zxing_local'; //二维码解码方式,online,phpzbar,zxing_online,zxing_local
$_ENV['finance_public'] = 'false'; //财务报告是否向群公开
$_ENV['enable_welcome_message'] = 'true'; //机器人发送欢迎消息
#Discord
$System_Config['enable_discord']='false'; //是否开启Discord bot(仍未完成)
$System_Config['discord_token']=''; //Discord bot,bot 的 token,在 https://discordapp.com/developers/applications/ 申请
$_ENV['enable_discord'] = 'false'; //是否开启Discord bot(仍未完成)
$_ENV['discord_token'] = ''; //Discord bot,bot 的 token,在 https://discordapp.com/developers/applications/ 申请
#Telegram
$System_Config['enable_telegram']='false'; //是否开启Telegram bot
$System_Config['telegram_token']=''; //Telegram bot,bot 的 token ,跟 father bot 申请
$System_Config['telegram_chatid']=''; //Telegram bot,群组会话 ID,把机器人拉进群里之后跟他 /ping 一下即可得到。
$System_Config['enable_tuling']='false'; //是否开启图灵机器人
$System_Config['tuling_apikey']=''; //图灵机器人API Key
$System_Config['tuling_apisecert']=''; //图灵机器人密钥
$System_Config['telegram_bot']='_bot'; //Telegram 机器人账号
$System_Config['telegram_group_quiet']='false'; //Telegram 机器人在群组中不回应
$System_Config['telegram_request_token']=''; //Telegram 机器人请求Key,随意设置,由大小写英文和数字组成,更新这个参数之后请 php xcat setTelegram
$_ENV['enable_telegram'] = 'false'; //是否开启Telegram bot
$_ENV['telegram_token'] = ''; //Telegram bot,bot 的 token ,跟 father bot 申请
$_ENV['telegram_chatid'] = ''; //Telegram bot,群组会话 ID,把机器人拉进群里之后跟他 /ping 一下即可得到。
$_ENV['enable_tuling'] = 'false'; //是否开启图灵机器人
$_ENV['tuling_apikey'] = ''; //图灵机器人API Key
$_ENV['tuling_apisecert'] = ''; //图灵机器人密钥
$_ENV['telegram_bot'] = '_bot'; //Telegram 机器人账号
$_ENV['telegram_group_quiet'] = 'false'; //Telegram 机器人在群组中不回应
$_ENV['telegram_request_token'] = ''; //Telegram 机器人请求Key,随意设置,由大小写英文和数字组成,更新这个参数之后请 php xcat setTelegram
//沟通设置--------------------------------------------------------------------------------------------
#客服系统设置,注册地址 https://www.mylivechat.com
$System_Config['enable_mylivechat']='false'; //是否开启客服系统
$System_Config['mylivechat_id']='null'; //客服系统ID
$_ENV['enable_mylivechat'] = 'false'; //是否开启客服系统
$_ENV['mylivechat_id'] = 'null'; //客服系统ID
# PushBear 基于微信模板的向关注了二维码的用户以微信方式推送消息 https://pushbear.ftqq.com/
$System_Config['usePushBear'] = 'false'; // true 启用 false 禁用
$System_Config['PushBear_sendkey'] = ''; //请填写您在PushBear获取的sendkey 请仔细检查勿粘贴错
$_ENV['usePushBear'] = 'false'; // true 启用 false 禁用
$_ENV['PushBear_sendkey'] = ''; //请填写您在PushBear获取的sendkey 请仔细检查勿粘贴错
#工单系统设置
$System_Config['enable_ticket']='true'; //是否开启工单系统
$System_Config['mail_ticket']='true'; //是否开启工单邮件提醒
$_ENV['enable_ticket'] = 'true'; //是否开启工单系统
$_ENV['mail_ticket'] = 'true'; //是否开启工单邮件提醒
# Server酱 用户提交新工单或者回复工单时用微信提醒机场主 http://sc.ftqq.com/
$System_Config['useScFtqq'] = 'false'; //是否开启工单Server酱提醒
$System_Config['ScFtqq_SCKEY'] = ''; //请填写您在Server酱获取的SCKEY 请仔细检查勿粘贴错
$_ENV['useScFtqq'] = 'false'; //是否开启工单Server酱提醒
$_ENV['ScFtqq_SCKEY'] = ''; //请填写您在Server酱获取的SCKEY 请仔细检查勿粘贴错
#管理员联系方式设置
$System_Config['enable_admin_contact']='false'; //是否开启管理员联系方式
$System_Config['admin_contact1'] = 'QQ:1233456'; //QQ、邮箱、微信仅用于举例
$System_Config['admin_contact2'] = '邮箱123456@qq.com'; //也可以写电话、tg等其他联系方式
$System_Config['admin_contact3'] = '微信~123456'; //没有格式要求,想怎么写就怎么写,可留空
$_ENV['enable_admin_contact'] = 'false'; //是否开启管理员联系方式
$_ENV['admin_contact1'] = 'QQ:1233456'; //QQ、邮箱、微信仅用于举例
$_ENV['admin_contact2'] = '邮箱123456@qq.com'; //也可以写电话、tg等其他联系方式
$_ENV['admin_contact3'] = '微信~123456'; //没有格式要求,想怎么写就怎么写,可留空
//验证码设置------------------------------------------------------------------------------------------
$System_Config['captcha_provider'] = 'recaptcha'; //取值 recaptcha | geetest(极验)
$_ENV['captcha_provider'] = 'recaptcha'; //取值 recaptcha | geetest(极验)
$System_Config['recaptcha_sitekey'] = '';
$System_Config['recaptcha_secret'] = '';
$_ENV['recaptcha_sitekey'] = '';
$_ENV['recaptcha_secret'] = '';
$System_Config['geetest_id'] = '';
$System_Config['geetest_key'] = '';
$_ENV['geetest_id'] = '';
$_ENV['geetest_key'] = '';
$System_Config['enable_reg_captcha'] = 'false'; //启用注册验证码
$System_Config['enable_login_captcha'] = 'false'; //启用登录验证码
$System_Config['enable_checkin_captcha'] = 'false'; //启用签到验证码
$_ENV['enable_reg_captcha'] = 'false'; //启用注册验证码
$_ENV['enable_login_captcha'] = 'false'; //启用登录验证码
$_ENV['enable_checkin_captcha'] = 'false'; //启用签到验证码
//支付系统设置----------------------------------------------------------------------------------------
#取值 none | codepay | trimepay | f2fpay | chenAlipay | paymentwall | spay |tomatopay
$System_Config['payment_system']='none';
$_ENV['payment_system'] = 'none';
#codepay码支付
#wiki地址:https://goo.gl/dRwRDi http://t.cn/RnsWjtB
$System_Config['codepay_id']=''; //码支付ID
$System_Config['codepay_key']=''; //码支付通信密钥
$_ENV['codepay_id'] = ''; //码支付ID
$_ENV['codepay_key'] = ''; //码支付通信密钥
#alipay,f2fpay
$System_Config['f2fpay_app_id']='';
$System_Config['f2fpay_p_id']='';
$System_Config['alipay_public_key']='';
$System_Config['merchant_private_key']='';
$System_Config['f2fNotifyUrl']=null; //自定义当面付回调地址
$_ENV['f2fpay_app_id'] = '';
$_ENV['f2fpay_p_id'] = '';
$_ENV['alipay_public_key'] = '';
$_ENV['merchant_private_key'] = '';
$_ENV['f2fNotifyUrl'] = null; //自定义当面付回调地址
#PaymentWall
$System_Config['pmw_publickey']='';
$System_Config['pmw_privatekey']='';
$System_Config['pmw_widget']='m2_1';
$System_Config['pmw_height']='350px';
$_ENV['pmw_publickey'] = '';
$_ENV['pmw_privatekey'] = '';
$_ENV['pmw_widget'] = 'm2_1';
$_ENV['pmw_height'] = '350px';
#alipay,spay
$System_Config['alipay_id']='';
$System_Config['alipay_key']='';
$System_Config['amount']=[2,23,233,2333,23333]; //充值金额选项设定
$_ENV['alipay_id'] = '';
$_ENV['alipay_key'] = '';
$_ENV['amount'] = [2, 23, 233, 2333, 23333]; //充值金额选项设定
#alipay,zfbjk.com
$System_Config['zfbjk_pid']='';
$System_Config['zfbjk_key']='';
$System_Config['zfbjk_qrcodeurl']='';
$_ENV['zfbjk_pid'] = '';
$_ENV['zfbjk_key'] = '';
$_ENV['zfbjk_qrcodeurl'] = '';
#Trimepay https://portal.trimepay.com/#/auth/register/134
$System_Config['trimepay_appid']=''; //AppID
$System_Config['trimepay_secret']=''; //AppSecret
$_ENV['trimepay_appid'] = ''; //AppID
$_ENV['trimepay_secret'] = ''; //AppSecret
# BitPay 数字货币支付(比特币、以太坊、EOS等) 商户后台获取授权码 https://merchants.mugglepay.com/
# 客服和技术 24x7 在线支持: https://t.me/joinchat/GLKSKhUnE4GvEAPgqtChAQ
$System_Config['bitpay_secret']='';
$_ENV['bitpay_secret'] = '';
//其他面板显示设置------------------------------------------------------------------------------------------
#后台商品列表 销量统计
$System_Config['sales_period']='30'; //统计指定周期内的销量,值为【expire/任意大于0的整数】
$_ENV['sales_period'] = '30'; //统计指定周期内的销量,值为【expire/任意大于0的整数】
#国旗
$System_Config['enable_flag']='false'; //启用该项之前务必先仔细阅读教程
$System_Config['flag_regex']='/.*?(?=\s)/'; //从站点全名中匹配【国家/地区】的正则表达式(php版)
$_ENV['enable_flag'] = 'false'; //启用该项之前务必先仔细阅读教程
$_ENV['flag_regex'] = '/.*?(?=\s)/'; //从站点全名中匹配【国家/地区】的正则表达式(php版)
#捐赠
$System_Config['enable_donate']='false'; //是否显示用户捐赠(所有收入将被公开)
$_ENV['enable_donate'] = 'false'; //是否显示用户捐赠(所有收入将被公开)
#iOS账户显示
$System_Config['display_ios_class']='-1'; //至少等级为多少的用户可以看见,小于0时关闭此功能
$System_Config['display_ios_topup']='0'; //满足等级要求后,累计充值高于多少的用户可以看见
$System_Config['ios_account']=''; //iOS账户
$System_Config['ios_password']=''; //iOS密码
$_ENV['display_ios_class'] = '-1'; //至少等级为多少的用户可以看见,小于0时关闭此功能
$_ENV['display_ios_topup'] = '0'; //满足等级要求后,累计充值高于多少的用户可以看见
$_ENV['ios_account'] = ''; //iOS账户
$_ENV['ios_password'] = ''; //iOS密码
//节点检测-----------------------------------------------------------------------------------------------
#GFW检测,请通过crontab进行【开启/关闭】
$System_Config['detect_gfw_interval']='3600'; //检测间隔,单位:秒,低于推荐值会爆炸
$System_Config['detect_gfw_port']='22'; //所有节点服务器都打开的TCP端口,常用的为22(SSH端口)
$System_Config['detect_gfw_url']='https://cn-qz-tcping.torch.njs.app/{ip}/{port}'; //检测节点是否被gfw墙了的API的URL
$System_Config['detect_gfw_judge']='$json_tcping[\'status\']=="true"'; //判断是否被墙的依据,json_tcping为上方URL返回的json数组
$System_Config['detect_gfw_count']='3'; //尝试次数
$_ENV['detect_gfw_interval'] = '3600'; //检测间隔,单位:秒,低于推荐值会爆炸
$_ENV['detect_gfw_port'] = '22'; //所有节点服务器都打开的TCP端口,常用的为22(SSH端口)
$_ENV['detect_gfw_url'] = 'https://cn-qz-tcping.torch.njs.app/{ip}/{port}'; //检测节点是否被gfw墙了的API的URL
$_ENV['detect_gfw_judge'] = '$json_tcping[\'status\']=="true"'; //判断是否被墙的依据,json_tcping为上方URL返回的json数组
$_ENV['detect_gfw_count'] = '3'; //尝试次数
#离线检测
$System_Config['enable_detect_offline']='true';
$_ENV['enable_detect_offline'] = 'true';
#离线检测是否推送到Server酱 请配置好上文的Server配置
$System_Config['enable_detect_offline_useScFtqq']='true';
$_ENV['enable_detect_offline_useScFtqq'] = 'true';
//V2Ray相关设置------------------------------------------------------------------------------------------
$System_Config['v2ray_port']='443'; //V2Ray端口
$System_Config['v2ray_protocol']='HTTP/2 + TLS'; //V2Ray协议
$System_Config['v2ray_alter_id']='32';
$System_Config['v2ray_level']='0';
$_ENV['v2ray_port'] = '443'; //V2Ray端口
$_ENV['v2ray_protocol'] = 'HTTP/2 + TLS'; //V2Ray协议
$_ENV['v2ray_alter_id'] = '32';
$_ENV['v2ray_level'] = '0';
//以下所有均为高级设置(一般用不上,不用改---------------------------------------------------------------------
#杂项
$System_Config['enable_login_bind_ip']='false'; //是否将登陆线程和IP绑定
$System_Config['rememberMeDuration']='7'; //登录时记住账号时长天数
$System_Config['authDriver'] = 'cookie'; //不能更改此项
$System_Config['pwdMethod'] = 'md5'; //密码加密 可选 md5, sha256, bcrypt, argon2i, argon2id(argon2i需要至少php7.2)
$System_Config['salt'] = ''; //推荐配合 md5/sha256, bcrypt/argon2i/argon2id 会忽略此项
$System_Config['sessionDriver'] = 'cookie'; //可选: cookie,redis
$System_Config['cacheDriver'] = 'cookie'; //可选: cookie,redis
$System_Config['tokenDriver'] = 'db'; //可选: db,redis
$System_Config['jump_delay']='1200'; //跳转延时,单位ms,不建议太长
$System_Config['theme'] = 'material'; //主题
$System_Config['pacp_offset']='-20000'; //VPN 端口偏移
$System_Config['pacpp_offset']='-20000';
$System_Config['Speedtest_duration']='6'; //显示多长时间的测速记录
$System_Config['login_warn']='false'; //异地登陆提示
$System_Config['timeZone'] = 'PRC'; //PRC 天朝时间 UTC 格林时间
$System_Config['db_charset'] = 'utf8';
$System_Config['db_collation'] = 'utf8_general_ci';
$System_Config['db_prefix'] = '';
$System_Config['muKeyList'] = [' ']; //多 key 列表
$_ENV['enable_login_bind_ip'] = 'false'; //是否将登陆线程和IP绑定
$_ENV['rememberMeDuration'] = '7'; //登录时记住账号时长天数
$_ENV['authDriver'] = 'cookie'; //不能更改此项
$_ENV['pwdMethod'] = 'md5'; //密码加密 可选 md5, sha256, bcrypt, argon2i, argon2id(argon2i需要至少php7.2)
$_ENV['salt'] = ''; //推荐配合 md5/sha256, bcrypt/argon2i/argon2id 会忽略此项
$_ENV['sessionDriver'] = 'cookie'; //可选: cookie,redis
$_ENV['cacheDriver'] = 'cookie'; //可选: cookie,redis
$_ENV['tokenDriver'] = 'db'; //可选: db,redis
$_ENV['jump_delay'] = '1200'; //跳转延时,单位ms,不建议太长
$_ENV['theme'] = 'material'; //主题
$_ENV['pacp_offset'] = '-20000'; //VPN 端口偏移
$_ENV['pacpp_offset'] = '-20000';
$_ENV['Speedtest_duration'] = '6'; //显示多长时间的测速记录
$_ENV['login_warn'] = 'false'; //异地登陆提示
$_ENV['timeZone'] = 'PRC'; //PRC 天朝时间 UTC 格林时间
$_ENV['db_charset'] = 'utf8';
$_ENV['db_collation'] = 'utf8_general_ci';
$_ENV['db_prefix'] = '';
$_ENV['muKeyList'] = [' ']; //多 key 列表
#aws
$System_Config['aws_access_key_id'] = '';
$System_Config['aws_secret_access_key'] = '';
$_ENV['aws_access_key_id'] = '';
$_ENV['aws_secret_access_key'] = '';
#redis
$System_Config['redis_scheme'] = 'tcp';
$System_Config['redis_host'] = '127.0.0.1';
$System_Config['redis_port'] = '6379';
$System_Config['redis_database'] = '0';
$System_Config['redis_password']= '';
$_ENV['redis_scheme'] = 'tcp';
$_ENV['redis_host'] = '127.0.0.1';
$_ENV['redis_port'] = '6379';
$_ENV['redis_database'] = '0';
$_ENV['redis_password'] = '';
#Radius设置
$System_Config['enable_radius']='false'; //是否开启Radius
$System_Config['radius_db_host']=''; //以下4项为Radius数据库设置
$System_Config['radius_db_database']='';
$System_Config['radius_db_user']='';
$System_Config['radius_db_password']='';
$System_Config['radius_secret']=''; //Radius连接密钥
$_ENV['enable_radius'] = 'false'; //是否开启Radius
$_ENV['radius_db_host'] = ''; //以下4项为Radius数据库设置
$_ENV['radius_db_database'] = '';
$_ENV['radius_db_user'] = '';
$_ENV['radius_db_password'] = '';
$_ENV['radius_secret'] = ''; //Radius连接密钥
#Cloudxns
$System_Config['enable_cloudxns']='false'; //是否开启Cloudxns
$System_Config['cloudxns_apikey']=''; //自己去 cloudxns.net 申请
$System_Config['cloudxns_apisecret']='';
$System_Config['cloudxns_domain']=''; //你的域名
$_ENV['enable_cloudxns'] = 'false'; //是否开启Cloudxns
$_ENV['cloudxns_apikey'] = ''; //自己去 cloudxns.net 申请
$_ENV['cloudxns_apisecret'] = '';
$_ENV['cloudxns_domain'] = ''; //你的域名
#Cloudflare
$System_Config['cloudflare_enable']='false'; //是否开启 Cloudflare 解析
$System_Config['cloudflare_email']='user@example.com'; //Cloudflare 邮箱地址
$System_Config['cloudflare_key']='c2547eb745079dac9320b638f5e225cf483cc5cfdda41'; //Cloudflare API Key
$System_Config['cloudflare_name']='example.com'; //域名
$_ENV['cloudflare_enable'] = 'false'; //是否开启 Cloudflare 解析
$_ENV['cloudflare_email'] = 'user@example.com'; //Cloudflare 邮箱地址
$_ENV['cloudflare_key'] = 'c2547eb745079dac9320b638f5e225cf483cc5cfdda41'; //Cloudflare API Key
$_ENV['cloudflare_name'] = 'example.com'; //域名
#不安全中转模式,这个开启之后使用除了 auth_aes128_md5 或者 auth_aes128_sha1 以外的协议地用户也可以设置和使用中转
$System_Config['relay_insecure_mode']='false'; //强烈推荐不开启
$_ENV['relay_insecure_mode'] = 'false'; //强烈推荐不开启
#是否夹带统计代码,自己在 resources/views/{主题名} 下创建一个 analytics.tpl ,如果有必要就用 literal 界定符
$System_Config['enable_analytics_code']='false';
$System_Config['sspanelAnalysis'] = 'true';
#在套了CDN之后获取用户真实ip,如果您不知道这是什么,请不要乱动
if ( isset($_SERVER['HTTP_X_FORWARDED_FOR']) ) {
$list = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']);
$_SERVER['REMOTE_ADDR'] = $list[0];
}
$_ENV['enable_analytics_code'] = 'false';
$_ENV['sspanelAnalysis'] = 'true';

@ -4,16 +4,16 @@ export default {
return this.subUrl + this.ssrSubToken
},
suburlMu0: function () {
return this.suburlBase + '?mu=0'
return this.suburlBase + '?sub=1'
},
suburlMu1: function () {
return this.suburlBase + '?mu=1'
return this.suburlBase + '?sub=1'
},
suburlMu3: function () {
return this.suburlBase + '?mu=3'
return this.suburlBase + '?ssd=1'
},
suburlMu2: function () {
return this.suburlBase + '?mu=2'
return this.suburlBase + '?sub=3'
}
},
data: function () {

@ -125,35 +125,6 @@
</uim-tooltip>
</span>
</div>
<div
v-if="currentDlType === 'SSR' && mergeSub !== 'true'"
class="pure-g align-center relative"
>
<span class="pure-u-6-24">单端口:</span>
<span class="pure-u-18-24 pure-g relative flex justify-center text-center">
<input
v-uimclip="{ onSuccess:successCopied }"
:data-uimclip="suburlMu1"
@mouseenter="showToolTip('mu1')"
@mouseleave="hideToolTip('mu1')"
:class="{ 'sublink-reset':subLinkTrans }"
class="tips tips-blue pure-u-1"
type="text"
name
id
:value="suburlMu1"
readonly
>
<uim-tooltip
v-show="toolTips.mu1"
class="uim-tooltip-top flex justify-center"
>
<template #tooltip-inner>
<span>{{suburlMu1}}</span>
</template>
</uim-tooltip>
</span>
</div>
</div>
</transition>
</div>

Loading…
Cancel
Save