Mindustry icon indicating copy to clipboard operation
Mindustry copied to clipboard

Fixed DNS pollution as China

Open Mr-Ao-Dragon opened this issue 1 year ago • 6 comments

Fixed DNS pollution as ChinaFixed DNS pollution as China.

  • [x] I have read the contribution guidelines.
  • [ ] I have ensured that my code compiles, if applicable.
  • [ ] I have ensured that any new features in this PR function correctly in-game, if applicable.

Mr-Ao-Dragon avatar Mar 26 '23 08:03 Mr-Ao-Dragon

Ideally, this mirror should be used as a fallback, instead of replacing the primary github link.

BasedUser avatar Mar 26 '23 12:03 BasedUser

Indeed. I don't want to use a service like that as default for everyone.

image

Anuken avatar Mar 26 '23 15:03 Anuken

Indeed. I don't want to use a service like that as default for everyone.

image

I prefer to use geoip judgment, but unfortunately I do not know how to use him

Mr-Ao-Dragon avatar Mar 27 '23 06:03 Mr-Ao-Dragon

Indeed. I don't want to use a service like that as default for everyone.

image

Can you help me to modify the pr followed by geoip? Thanks.

Mr-Ao-Dragon avatar Mar 27 '23 06:03 Mr-Ao-Dragon

You probably don't need something as complex as GeoIP, however; you could modify the error handler to try and get from raw.githubusercontents.com if an error is encountered.

BasedUser avatar Mar 27 '23 15:03 BasedUser

You probably don't need something as complex as GeoIP, however; you could modify the error handler to try and get from raw.githubusercontents.com if an error is encountered.

好的,感谢您

Mr-Ao-Dragon avatar Mar 28 '23 01:03 Mr-Ao-Dragon

add an "if" to use mirror when get is failed don't change it directly

Cong0707 avatar Jun 05 '23 04:06 Cong0707

try catch 😨

BasedUser avatar Jun 07 '23 17:06 BasedUser