Skip to content

Commit

Permalink
Update ping.pl
Browse files Browse the repository at this point in the history
new changes manually incorporated ..
  • Loading branch information
aroundmyroom authored Nov 2, 2024
1 parent ffee765 commit c5cdf9e
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions ping.pl
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,15 @@ ()
$pngsub = "TRACE:";

#Get zone of sender
while ( $fromaddr =~ /^(.*?):/g ) {
$fromzone = $1;
($fromzone) = $fromaddr =~ /^(.*?)(?=:)/;
}
#If othernet, match sender's zone with an address on this system
if ( $fromzone !~ /\d\{1,2,3,4\}?/ ) {
if ( $fromzone !~ /^[1234]$/ ) {
foreach (@myaddr) {
while ( $_ =~ /^(.*?):/g ) {
$myzone = $1;
}
($myzone) = $_ =~ /^(.*?)(?=:)/;
if ( $myzone == $fromzone ) {
$myaddr = $_;
last;
}
}
}
}
Expand All @@ -87,7 +83,9 @@ ()
$msgtext = $text;

# Get MSGID (if any) for REPLY: kludge
($RPLY) = $msgtext =~ /\x01MSGID:\s*(.*?)\r/;
if ( $msgtext =~ /\r\x01MSGID:\s*(.*?)\r/ ) {
$RPLY = $1;
}

# Invalidate control stuff
$msgtext =~ s/\x01/@/g;
Expand Down

0 comments on commit c5cdf9e

Please sign in to comment.