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:
parent
a59077a370
commit
008ae926e7
4 changed files with 14 additions and 3 deletions
6
mode_s.c
6
mode_s.c
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue