mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
Fixed guardian gateway detection - this fixes bug #0000665
This commit is contained in:
@@ -34,12 +34,13 @@ if ($hostipaddr !~ /\d+\.\d+\.\d+\.\d+/) {
|
||||
|
||||
$networkaddr = $hostipaddr;
|
||||
$networkaddr =~ s/\d+$/0/;
|
||||
$gatewayaddr = $hostipaddr;
|
||||
$gatewayaddr =~ s/\d+$/$hostgatewaybyte/;
|
||||
$gatewayaddr = `cat /var/ipfire/red/remote-ipaddress 2>/dev/null`;
|
||||
$broadcastaddr = $hostipaddr;
|
||||
$broadcastaddr =~ s/\d+$/255/;
|
||||
&build_ignore_hash;
|
||||
|
||||
print "My gatewayaddess is: $gatewayaddr\n";
|
||||
|
||||
# This is the target hash. If a packet was destened to any of these, then the
|
||||
# sender of that packet will get denied, unless it is on the ignore list..
|
||||
|
||||
|
||||
Reference in New Issue
Block a user