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