diff --git a/.github/workflows/update_hosts.yml b/.github/workflows/update_hosts.yml index 675d537..4424e67 100644 --- a/.github/workflows/update_hosts.yml +++ b/.github/workflows/update_hosts.yml @@ -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 diff --git a/README.md b/README.md index a29ee38..cd6c91a 100644 --- a/README.md +++ b/README.md @@ -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 文件 diff --git a/hosts b/hosts index 1fbb871..8dc7608 100644 --- a/hosts +++ b/hosts @@ -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 diff --git a/setHosts.py b/setHosts.py index e2a2e02..0fe1c92 100644 --- a/setHosts.py +++ b/setHosts.py @@ -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(