From dd53147127dbb13f4df4ffa574c7011de40324e6 Mon Sep 17 00:00:00 2001 From: sunlei Date: Fri, 26 Jun 2026 18:11:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DNapCat=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E6=8B=9F=E7=9C=9Fhosts=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ci/napcat-desktop-cn/entrypoint-device-profile.patch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/napcat-desktop-cn/entrypoint-device-profile.patch.sh b/ci/napcat-desktop-cn/entrypoint-device-profile.patch.sh index 06be13b..f06cd74 100644 --- a/ci/napcat-desktop-cn/entrypoint-device-profile.patch.sh +++ b/ci/napcat-desktop-cn/entrypoint-device-profile.patch.sh @@ -134,7 +134,7 @@ if [ "${NAPCAT_REQUIRE_DEVICE_PROFILE:-0}" = "1" ]; then echo "NapCat device profile check failed: mountinfo-host-leak:/proc/1/mountinfo" >&2 exit 78 fi - if grep -q "$(hostname)" /etc/hosts; then + if [ "$(hostname)" != "localhost" ] && grep -q "$(hostname)" /etc/hosts; then echo "NapCat device profile check failed: hosts-still-contains-hostname" >&2 exit 78 fi