Skip to content

Commit

Permalink
test: update_hosts.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sinspired committed Nov 29, 2024
1 parent 96a2070 commit 6972483
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 58 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/update_hosts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Run hosts update script1
run: |
sudo python setHosts.py --NotUseDnsServers
sudo python setHosts.py
# 提交并推送更新(仅在文件变更时)
- name: Commit and push changes
Expand Down
75 changes: 46 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,50 +30,67 @@

```bash

# cnNetTool Start in 2024-11-29 20:50:29 +08:00
# cnNetTool Start in 2024-11-29 20:52:50 +08:00
140.82.112.26 alive.github.com
140.82.113.21 central.github.com
140.82.112.10 codeload.github.com
140.82.112.21 collector.github.com
140.82.112.3 gist.github.com
140.82.113.3 github.com
151.101.129.194 github.global.ssl.fastly.net
16.182.107.17 github-com.s3.amazonaws.com
52.216.208.105 github-production-release-asset-2e65be.s3.amazonaws.com
140.82.114.18 github.community
151.101.193.194 github.global.ssl.fastly.net
52.217.197.113 github-com.s3.amazonaws.com
3.5.25.118 github-production-release-asset-2e65be.s3.amazonaws.com
140.82.114.25 live.github.com
13.107.42.16 pipelines.actions.githubusercontent.com
185.199.110.154 github.githubassets.com
185.199.110.153 github.io
185.199.110.153 githubstatus.com
185.199.110.153 assets-cdn.github.com
99.84.108.29 tmdb.org
99.84.108.29 api.tmdb.org
99.84.108.29 files.tmdb.org
52.85.151.24 themoviedb.org
52.85.151.24 api.themoviedb.org
52.85.151.24 www.themoviedb.org
52.85.151.24 auth.themoviedb.org
169.150.236.100 image.tmdb.org
169.150.236.100 images.tmdb.org
52.94.228.167 imdb.com
3.168.35.144 www.imdb.com
185.199.108.153 github.io
185.199.108.153 githubstatus.com
185.199.108.153 assets-cdn.github.com
185.199.108.133 avatars.githubusercontent.com
185.199.108.133 avatars0.githubusercontent.com
185.199.108.133 avatars1.githubusercontent.com
185.199.108.133 avatars2.githubusercontent.com
185.199.108.133 avatars3.githubusercontent.com
185.199.108.133 avatars4.githubusercontent.com
185.199.108.133 avatars5.githubusercontent.com
185.199.108.133 camo.githubusercontent.com
185.199.108.133 cloud.githubusercontent.com
185.199.108.133 desktop.githubusercontent.com
185.199.108.133 favicons.githubusercontent.com
185.199.108.133 github.map.fastly.net
185.199.108.133 media.githubusercontent.com
185.199.108.133 objects.githubusercontent.com
185.199.108.133 private-user-images.githubusercontent.com
185.199.108.133 raw.githubusercontent.com
185.199.108.133 user-images.githubusercontent.com
99.84.108.50 tmdb.org
99.84.108.50 api.tmdb.org
99.84.108.50 files.tmdb.org
52.85.151.48 themoviedb.org
52.85.151.48 api.themoviedb.org
52.85.151.48 www.themoviedb.org
52.85.151.48 auth.themoviedb.org
52.94.225.248 imdb.com
52.94.228.167 secure.imdb.com
18.67.59.121 s.media-imdb.com
52.94.225.248 us.dd.imdb.com
151.101.129.16 m.media-amazon.com
151.101.1.16 Images-na.ssl-images-amazon.com
151.101.65.16 m.media-amazon.com
151.101.65.16 Images-na.ssl-images-amazon.com
13.32.177.205 images-fe.ssl-images-amazon.com
173.223.163.218 ia.media-imdb.com
216.58.200.10 translate.google.com
216.58.200.10 translate.googleapis.com
216.58.200.10 translate-pa.googleapis.com

# Update time: 2024-11-29 20:50:29 +08:00
54.192.199.207 images-eu.ssl-images-amazon.com
172.217.31.174 translate.google.com
172.217.31.174 translate.googleapis.com
172.217.31.174 translate-pa.googleapis.com
13.32.151.9 plugins.jetbrains.com
13.32.151.9 download.jetbrains.com
13.32.151.9 cache-redirector.jetbrains.com

# Update time: 2024-11-29 20:52:50 +08:00
# GitHub仓库: https://github.com/sinspired/cnNetTool
# cnNetTool End

```

以上内容会自动定时更新, 数据更新时间:2024-11-29 20:50:29 +08:00
以上内容会自动定时更新, 数据更新时间:2024-11-29 20:52:50 +08:00

#### 1.2.2 修改 hosts 文件

Expand Down
71 changes: 44 additions & 27 deletions hosts
Original file line number Diff line number Diff line change
@@ -1,41 +1,58 @@

# cnNetTool Start in 2024-11-29 20:50:29 +08:00
# cnNetTool Start in 2024-11-29 20:52:50 +08:00
140.82.112.26 alive.github.com
140.82.113.21 central.github.com
140.82.112.10 codeload.github.com
140.82.112.21 collector.github.com
140.82.112.3 gist.github.com
140.82.113.3 github.com
151.101.129.194 github.global.ssl.fastly.net
16.182.107.17 github-com.s3.amazonaws.com
52.216.208.105 github-production-release-asset-2e65be.s3.amazonaws.com
140.82.114.18 github.community
151.101.193.194 github.global.ssl.fastly.net
52.217.197.113 github-com.s3.amazonaws.com
3.5.25.118 github-production-release-asset-2e65be.s3.amazonaws.com
140.82.114.25 live.github.com
13.107.42.16 pipelines.actions.githubusercontent.com
185.199.110.154 github.githubassets.com
185.199.110.153 github.io
185.199.110.153 githubstatus.com
185.199.110.153 assets-cdn.github.com
99.84.108.29 tmdb.org
99.84.108.29 api.tmdb.org
99.84.108.29 files.tmdb.org
52.85.151.24 themoviedb.org
52.85.151.24 api.themoviedb.org
52.85.151.24 www.themoviedb.org
52.85.151.24 auth.themoviedb.org
169.150.236.100 image.tmdb.org
169.150.236.100 images.tmdb.org
52.94.228.167 imdb.com
3.168.35.144 www.imdb.com
185.199.108.153 github.io
185.199.108.153 githubstatus.com
185.199.108.153 assets-cdn.github.com
185.199.108.133 avatars.githubusercontent.com
185.199.108.133 avatars0.githubusercontent.com
185.199.108.133 avatars1.githubusercontent.com
185.199.108.133 avatars2.githubusercontent.com
185.199.108.133 avatars3.githubusercontent.com
185.199.108.133 avatars4.githubusercontent.com
185.199.108.133 avatars5.githubusercontent.com
185.199.108.133 camo.githubusercontent.com
185.199.108.133 cloud.githubusercontent.com
185.199.108.133 desktop.githubusercontent.com
185.199.108.133 favicons.githubusercontent.com
185.199.108.133 github.map.fastly.net
185.199.108.133 media.githubusercontent.com
185.199.108.133 objects.githubusercontent.com
185.199.108.133 private-user-images.githubusercontent.com
185.199.108.133 raw.githubusercontent.com
185.199.108.133 user-images.githubusercontent.com
99.84.108.50 tmdb.org
99.84.108.50 api.tmdb.org
99.84.108.50 files.tmdb.org
52.85.151.48 themoviedb.org
52.85.151.48 api.themoviedb.org
52.85.151.48 www.themoviedb.org
52.85.151.48 auth.themoviedb.org
52.94.225.248 imdb.com
52.94.228.167 secure.imdb.com
18.67.59.121 s.media-imdb.com
52.94.225.248 us.dd.imdb.com
151.101.129.16 m.media-amazon.com
151.101.1.16 Images-na.ssl-images-amazon.com
151.101.65.16 m.media-amazon.com
151.101.65.16 Images-na.ssl-images-amazon.com
13.32.177.205 images-fe.ssl-images-amazon.com
173.223.163.218 ia.media-imdb.com
216.58.200.10 translate.google.com
216.58.200.10 translate.googleapis.com
216.58.200.10 translate-pa.googleapis.com
54.192.199.207 images-eu.ssl-images-amazon.com
172.217.31.174 translate.google.com
172.217.31.174 translate.googleapis.com
172.217.31.174 translate-pa.googleapis.com
13.32.151.9 plugins.jetbrains.com
13.32.151.9 download.jetbrains.com
13.32.151.9 cache-redirector.jetbrains.com

# Update time: 2024-11-29 20:50:29 +08:00
# Update time: 2024-11-29 20:52:50 +08:00
# GitHub²Ö¿â: https://github.com/sinspired/cnNetTool
# cnNetTool End
2 changes: 1 addition & 1 deletion setHosts.py
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ def __init__(
self.tester = tester
self.hosts_manager = hosts_manager
# 添加并发限制
self.semaphore = asyncio.Semaphore(1) # 限制并发请求数
self.semaphore = asyncio.Semaphore(200) # 限制并发请求数

# 添加进度显示实例
self.progress = Progress(
Expand Down

0 comments on commit 6972483

Please sign in to comment.