Skip to content

Commit eb879ff

Browse files
committed
Do not translate ignoring message
1 parent 8ae53b2 commit eb879ff

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

src/webu.c

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -974,8 +974,18 @@ static int webu_failauth_check(struct webui_ctx *webui)
974974
}
975975

976976
if (retcd) {
977-
MOTION_LOG(ALR,TYPE_ALL, NO_ERRNO
977+
if (mystrne(
978+
_("Ignoring connection from: %s")
979+
,"Ignoring connection from: %s")) {
980+
MOTION_LOG(ALR,TYPE_ALL, NO_ERRNO
978981
, _("Ignoring connection from: %s"), webui->clientip);
982+
}
983+
/* Do not translate the message below or change it
984+
* in any way. Other applications read the logs looking
985+
* for this message so that the IP can be banned
986+
*/
987+
MOTION_LOG(ALR,TYPE_ALL, NO_ERRNO
988+
, "Ignoring connection from: %s", webui->clientip);
979989
SLEEP(2, 0);
980990
}
981991

0 commit comments

Comments
 (0)