From cf9d024419e758dd8d269198da9ffc93f92df7f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=85=B1=E5=A4=A9=E5=B0=8F=E7=A6=BD=E5=85=BD?= Date: Mon, 25 Jul 2022 21:32:36 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8C=E7=AB=99=E7=94=BB=E5=BB=8A=E5=B0=81?= =?UTF-8?q?=E9=9D=A2=E5=9B=BE=E6=97=A0=E6=B3=95=E8=AE=BF=E9=97=AE=EF=BC=8C?= =?UTF-8?q?=E6=9A=82=E6=97=B6=E5=85=A8=E9=83=A8=E6=9B=BF=E6=8D=A2=E5=9B=BE?= =?UTF-8?q?=E7=89=87url=E7=9A=84host=E4=B8=BAehgt.org?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Failed to load gallery cover image for exhentai without domain-fronting. Temporarily replace the 'host' field in all cover image's url from 'exhentai.org' to 'ehgt.org' --- lib/src/widget/eh_image.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/widget/eh_image.dart b/lib/src/widget/eh_image.dart index 58d6c6b2..65443fed 100644 --- a/lib/src/widget/eh_image.dart +++ b/lib/src/widget/eh_image.dart @@ -195,9 +195,9 @@ class _EHImageState extends State { /// replace image host: exhentai.org -> ehgt.org String _replaceEXUrlIfEnableDomainFronting(String url) { - if (NetworkSetting.enableDomainFronting.isFalse) { - return url; - } + // if (NetworkSetting.enableDomainFronting.isFalse) { + // return url; + // } Uri rawUri = Uri.parse(url); String host = rawUri.host; if (host != 'exhentai.org') {