Repository navigation
Releases
Releases · AFAlimru/fastly-hosts-adjust
v0.8.3
Fixes / 修正
- Read-only hosts files can now be written: the read-only flag is cleared temporarily and restored afterwards. Reported in #3.
可以寫入被設成唯讀的 hosts:暫時取消唯讀、寫完再設回去。回報於 #3。 - If hosts still cannot be written (e.g. antivirus protection, or another program has it open), the tool shows step-by-step instructions and the exact lines to add by hand, and saves them to a text file for easy copying. Suggested in #3.
如果還是寫不進去(例如防毒軟體保護、其他程式正開著 hosts),會顯示手動修改的步驟和要加入的確切內容,並另存成文字檔方便複製。建議來自 #3。 - "Delete" can now remove a read-only hosts backup.
「刪除」現在可以刪掉唯讀的 hosts 備份檔。
Download / 下載
- Windows:
fastly-hosts-0.8.3-windows-x64.zip→ unzip, runfastly-hosts.exe. Existing users: menu7(Update).
解壓縮後執行fastly-hosts.exe;已安裝的使用者可用選單7更新。 - Linux:
git pull, or menu7(Update).
SHA256 (fastly-hosts.exe)
99cd1eab986770740273c990c87125052d3c53e2ca2bda7ffd7a3f310aec2a42
v0.8.2
What's new / 更新內容
- Automated tests: 61 test cases for the core functions, contributed by @wxs-lang in #2. They run on Linux and Windows without network access or hosts changes:
python3 -m pytest tests/
自動化測試:@wxs-lang 在 #2 貢獻了 61 個核心功能的測試,Linux 和 Windows 都能執行,不連網路、不改 hosts:python3 -m pytest tests/ - No functional changes to the program since v0.8.1.
程式功能與 v0.8.1 相同,沒有變動。
Download / 下載
- Windows:
fastly-hosts-0.8.2-windows-x64.zip→ unzip, runfastly-hosts.exe. Existing users: menu7(Update).
解壓縮後執行fastly-hosts.exe;已安裝的使用者可用選單7更新。 - Linux:
git pull, or menu7(Update).
SHA256 (fastly-hosts.exe)
74cfc7b984ffabd90a1caad42ab8a9eef27219d09858e4bc1cf0294f2f180898
v0.8.1
Fixes / 修正
- Test step numbers now match the number of services (e.g. 1/4 … 4/4 instead of always 2/2). Reported in #1.
測試的步驟編號會依實際的服務數量顯示(例如 1/4~4/4,不再固定顯示 2/2),回報於 #1。 - Clearer speed-test label: "speed test: GitHub downloads…".
測速時的說明改為「測速:GitHub 下載…」,比較通順。
Notes / 說明
- After writing or restoring hosts, the tool already runs
ipconfig /flushdns(Linux:resolvectl flush-caches) automatically.ipconfig /registerdnsis not needed. Browsers keep their own DNS cache and open connections, so restart the browser to be sure it uses the new route.
寫入或還原 hosts 後,程式會自動執行ipconfig /flushdns(Linux:resolvectl flush-caches),不需要ipconfig /registerdns。瀏覽器有自己的 DNS 快取並會沿用已開的連線,改完後重開瀏覽器即可確保走新路線。
Download / 下載
- Windows:
fastly-hosts-0.8.1-windows-x64.zip→ unzip, runfastly-hosts.exe. Existing users: menu7(Update).
解壓縮後執行fastly-hosts.exe;已安裝的使用者可用選單7更新。 - Linux:
git pull, or menu7(Update).
SHA256 (fastly-hosts.exe)
592f31fa97a34e4dc7fc6b74eb8ead4c2ec22c25a9b55f8538434ba3a355a263
v0.8.0
What's new / 新功能
- Twitch support (pages, images, emotes, site data) — requested in #1. The live video and chat are not on Fastly and are not affected.
支援 Twitch(網頁、圖片、表情符號、網站資料),回應 #1。直播影片和聊天室不在 Fastly 上,改不到。 - Custom domains: add any Fastly-served domain (menu
D), with an optional speed-test file.
自訂網域:可以自己加入任何放在 Fastly 上的網域(選單D),可選填測速檔。 - Choose which services to speed up (menu
S). With all built-in services on, a test takes about 4 minutes.
選擇要加速的服務(選單S)。內建服務全開時,測試約 4 分鐘。
Fixes / 修正
- The Twitch speed-test file is fetched through the scanned routes, because the default route is often the congested one.
Twitch 測速檔改由掃描到的路線抓取(系統預設路線常常正是卡住的那條)。 - Speed samples are now 2 s (congested routes crawl at ~1 Mbps from the start).
每次測速改為 2 秒(卡住的路線一開始就只有約 1 Mbps)。 - Clearer wording when the suggested route is another line in the same region, when no speed test was possible, or when the node is unknown.
建議同地區的另一條線路、沒有測速、節點不明時,顯示更清楚。 - Check marks no longer turn into "?" on Big5 / English consoles.
打勾符號在 Big5 和英文主控台不再變成問號。
Download / 下載
- Windows:
fastly-hosts-0.8.0-windows-x64.zip→ unzip, runfastly-hosts.exe. Existing users: menu7(Update).
解壓縮後執行fastly-hosts.exe;已安裝的使用者可用選單7更新。 - Linux:
git pull, or menu7(Update).
SHA256 (fastly-hosts.exe)
138a6362da12898698b2e571e6a480f752cf534db6f3b8604d442223f7ea75f9
v0.7.0
First public release. / 第一個公開版本。
Download / 下載
- Windows: download
fastly-hosts-0.7.0-windows-x64.zip, unzip, double-clickfastly-hosts.exe
下載 zip、解壓縮、雙擊fastly-hosts.exe - Linux:
git clonethis repo and runsh linux/install.sh(see README)
clone 本專案後執行sh linux/install.sh(詳見 README)
The exe is not code-signed. If SmartScreen blocks it, click "More info" → "Run anyway".
exe 沒有數位簽章,SmartScreen 擋下時點「其他資訊」→「仍要執行」。
Features / 功能
- Finds the most stable nearby Fastly route for GitHub downloads and X images, and pins it in hosts
找出附近最穩的 Fastly 路線並寫入 hosts,加速 GitHub 下載與 X 圖片 - Skips distant nodes automatically (scan ~18 s) / 自動略過太遠的節點(掃描約 18 秒)
- Choose a region yourself by code or city name / 可用代碼或城市名稱自己指定地區
- Node latency list with paging / 所有節點延遲(分頁顯示)
- Built-in update check / 內建檢查更新
- English and Chinese UI / 中英文介面
- Restore / delete all data at any time / 隨時還原、刪除所有資料
SHA256 (fastly-hosts.exe)
50cc16c98c1f217ae81abe95ec7b94329239fc37ad64ed996858197ffda8f3e7