@@ -196,8 +196,6 @@ def _get_latest_kdk(self, host_build: str = None, host_version: str = None) -> N
196196 for kdk in remote_kdk_version :
197197 if (kdk ["build" ] != host_build ):
198198 continue
199- if self .constants .github_proxy_link != "SimpleHac" and self .constants .github_proxy_link != "Default" :
200- kdk ['url' ]= kdk ['url' ].replace ("https://gitapi.simplehac.top/" ,"" )
201199 if self .constants .github_proxy_link == "gh-proxy" :
202200 kdk ['url' ]= "https://gh-proxy.com/" + kdk ['url' ]
203201 if self .constants .github_proxy_link == "ghfast" :
@@ -257,11 +255,18 @@ def _get_latest_kdk(self, host_build: str = None, host_version: str = None) -> N
257255 return
258256 logging .info (self .trans ["No direct match found for {0}, falling back to closest match" ].format (host_build ))
259257 logging .info (self .trans ["Closest Match: {0} ({1})" ].format (self .kdk_closest_match_url_build , self .kdk_closest_match_url_version ))
260-
258+
261259 self .kdk_url = self .kdk_closest_match_url
262260 self .kdk_url_build = self .kdk_closest_match_url_build
263261 self .kdk_url_version = self .kdk_closest_match_url_version
264262 self .kdk_url_expected_size = self .kdk_closest_match_url_expected_size
263+ if self .constants .github_proxy_link == "gh-proxy" :
264+ self .kdk_url = "https://gh-proxy.com/" + self .kdk_url
265+ elif self .constants .github_proxy_link == "ghfast" :
266+ self .kdk_url = "https://ghfast.top/" + self .kdk_url
267+ elif self .constants .github_proxy_link == "ghllkk" :
268+ self .kdk_url = "https://gh.llkk.cc" + self .kdk_url
269+
265270 else :
266271 logging .info (self .trans ["Direct match found for {0} ({1})" ].format (host_build , host_version ))
267272
@@ -273,7 +278,8 @@ def _get_latest_kdk(self, host_build: str = None, host_version: str = None) -> N
273278 self .kdk_already_installed = True
274279 self .success = True
275280 return
276-
281+
282+
277283 logging .info (self .trans ["Following KDK is recommended:" ])
278284 logging .info (self .trans ["- KDK Build: {0}" ].format (self .kdk_url_build ))
279285 logging .info (self .trans ["- KDK Version: {0}" ].format (self .kdk_url_version ))
0 commit comments