Add --net-verbatim, which forwards the original uncorrected message to net clients,

not the corrected version. Then the client can make its own policy decisions about
whether to accept and correct the damaged messages.
This commit is contained in:
Oliver Jowett 2015-01-22 19:56:38 +00:00
parent a59077a370
commit 008ae926e7
4 changed files with 14 additions and 3 deletions

View file

@ -417,8 +417,12 @@ static char *ais_charset = "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_ !\"#$%&'()*+,-./01
int decodeModesMessage(struct modesMessage *mm, unsigned char *msg)
{
// Work on our local copy
// Work on our local copy.
memcpy(mm->msg, msg, MODES_LONG_MSG_BYTES);
if (Modes.net_verbatim) {
// Preserve the original uncorrected copy for later forwarding
memcpy(mm->verbatim, msg, MODES_LONG_MSG_BYTES);
}
msg = mm->msg;
// Get the message type ASAP as other operations depend on this