Add steam domain list
This commit is contained in:
parent
9cf6161dbf
commit
28fbdaf1fc
13
.github/workflows/run.yml
vendored
13
.github/workflows/run.yml
vendored
@ -19,6 +19,7 @@ jobs:
|
||||
echo "custom_icloud=https://raw.githubusercontent.com/Loyalsoldier/domain-list-custom/release/icloud.txt" >> $GITHUB_ENV
|
||||
echo "custom_tld_not_cn=https://raw.githubusercontent.com/Loyalsoldier/domain-list-custom/release/tld-!cn.txt" >> $GITHUB_ENV
|
||||
echo "custom_private=https://raw.githubusercontent.com/Loyalsoldier/domain-list-custom/release/private.txt" >> $GITHUB_ENV
|
||||
echo "custom_steam=https://raw.githubusercontent.com/Loyalsoldier/domain-list-custom/release/steam.txt" >> $GITHUB_ENV
|
||||
echo "Loyalsoldier_reject=https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/reject-list.txt" >> $GITHUB_ENV
|
||||
echo "Loyalsoldier_proxy=https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/proxy-list.txt" >> $GITHUB_ENV
|
||||
echo "Loyalsoldier_direct=https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/direct-list.txt" >> $GITHUB_ENV
|
||||
@ -104,6 +105,18 @@ jobs:
|
||||
echo "payload:" > lancidr.txt
|
||||
curl -sSL ${lan_cidr} | perl -ne '/(.+\/\d+)/ && print " - |$1|\n"' | sed "s/|/'/g" >> lancidr.txt
|
||||
|
||||
- name: Generate steam.txt file
|
||||
run: |
|
||||
echo "payload:" > steam.txt
|
||||
curl -sSL ${custom_steam} | grep -Ev "^(regexp|keyword):" | perl -ne '/^(full:)([-_a-zA-Z0-9]+(\.[-_a-zA-Z0-9]+)*)\n/ && print " - |$2|\n"' | sed "s/|/'/g" >> steam.txt
|
||||
curl -sSL ${custom_steam} | grep -Ev "^(regexp|keyword|full):" | perl -ne '/^(domain:)([-_a-zA-Z0-9]+(\.[-_a-zA-Z0-9]+)*)\n/ && print " - |+.$2|\n"' | sed "s/|/'/g" >> steam.txt
|
||||
|
||||
- name: Generate steam-cn.txt file
|
||||
run: |
|
||||
echo "payload:" > steam-cn.txt
|
||||
curl -sSL ${custom_steam} | grep -Ev "^(regexp|keyword):" | perl -ne '/^(full:)([-_a-zA-Z0-9]+(\.[-_a-zA-Z0-9]+)*)(:@cn)/ && print " - |$2|\n"' | sed "s/|/'/g" >> steam-cn.txt
|
||||
curl -sSL ${custom_steam} | grep -Ev "^(regexp|keyword|full):" | perl -ne '/^(domain:)([-_a-zA-Z0-9]+(\.[-_a-zA-Z0-9]+)*)(:@cn)/ && print " - |+.$2|\n"' | sed "s/|/'/g" >> steam-cn.txt
|
||||
|
||||
- name: Move files to publish directory
|
||||
run: |
|
||||
mkdir -p publish
|
||||
|
24
README.md
24
README.md
@ -64,6 +64,12 @@
|
||||
- **需要直连的常见软件列表 applications.txt**:
|
||||
- [https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/applications.txt](https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/applications.txt)
|
||||
- [https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/applications.txt](https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/applications.txt)
|
||||
- **steam列表 steam.txt**:
|
||||
- [https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/steam.txt](https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/steam.txt)
|
||||
- [https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/steam.txt](https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/steam.txt)
|
||||
- **steam中国列表 steam.txt**:
|
||||
- [https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/steam-cn.txt](https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/steam-cn.txt)
|
||||
- [https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/steam-cn.txt](https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/steam-cn.txt)
|
||||
|
||||
### 使用方式
|
||||
|
||||
@ -172,6 +178,20 @@ rule-providers:
|
||||
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/applications.txt"
|
||||
path: ./ruleset/applications.yaml
|
||||
interval: 86400
|
||||
|
||||
steam:
|
||||
type: http
|
||||
behavior: domain
|
||||
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/steam.txt"
|
||||
path: ./ruleset/steam.yaml
|
||||
interval: 86400
|
||||
|
||||
steamcn:
|
||||
type: http
|
||||
behavior: domain
|
||||
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/steam-cn.txt"
|
||||
path: ./ruleset/steamcn.yaml
|
||||
interval: 86400
|
||||
```
|
||||
|
||||
#### 白名单模式 Rules 配置方式(推荐)
|
||||
@ -196,6 +216,8 @@ rules:
|
||||
- RULE-SET,lancidr,DIRECT
|
||||
- RULE-SET,cncidr,DIRECT
|
||||
- RULE-SET,telegramcidr,PROXY
|
||||
- RULE-SET,steam,PROXY
|
||||
- RULE-SET,steamcn,DIRECT
|
||||
- GEOIP,LAN,DIRECT
|
||||
- GEOIP,CN,DIRECT
|
||||
- MATCH,PROXY
|
||||
@ -217,6 +239,8 @@ rules:
|
||||
- RULE-SET,gfw,PROXY
|
||||
- RULE-SET,greatfire,PROXY
|
||||
- RULE-SET,telegramcidr,PROXY
|
||||
- RULE-SET,steam,PROXY
|
||||
- RULE-SET,steamcn,DIRECT
|
||||
- MATCH,DIRECT
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user