I found this bug is caused by the OKHttpClient instance is a singleton and it can not be changed by any preferences after the app was started. I fix it by setting the instance to null after preferences changed so the instance will be applied with sslSocketFactory and dns method on the next request.
Hi! This is a fix of issue https://github.com/yellowbluesky/PixivforMuzei3/issues/162
I found this bug is caused by the OKHttpClient instance is a singleton and it can not be changed by any preferences after the app was started. I fix it by setting the instance to null after preferences changed so the instance will be applied with
sslSocketFactory
anddns
method on the next request.