Skip to content

Commit f86a593

Browse files
authored
Merge pull request #6 from jedso/fix/quarantine-ipaddr
Fix IP address being null inside Scanner.php
2 parents 35114b1 + d87d946 commit f86a593

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Scanner.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ public function __construct(\phpMussel\Core\Loader &$Loader)
8585
if ($this->CalledFrom === 'CLI') {
8686
$Origin = 'CLI';
8787
} elseif ($this->Loader->Configuration['legal']['pseudonymise_ip_addresses']) {
88-
$Origin = $this->Loader->pseudonymiseIP($this->IPAddr);
88+
$Origin = $this->Loader->pseudonymiseIP($this->Loader->IPAddr);
8989
} else {
90-
$Origin = $this->IPAddr;
90+
$Origin = $this->Loader->IPAddr;
9191
}
9292

9393
/** Get detections. */
@@ -1014,7 +1014,7 @@ private function recursor($Files = '', int $Depth = -1): void
10141014
$this->quarantine(
10151015
$In,
10161016
$this->Loader->Configuration['quarantine']['quarantine_key'],
1017-
$this->IPAddr,
1017+
$this->Loader->IPAddr,
10181018
$qfu
10191019
);
10201020
$this->Loader->HashReference .= sprintf($this->Loader->L10N->getString('response.Quarantined as'), $qfu) . "\n";
@@ -1086,7 +1086,7 @@ private function recursor($Files = '', int $Depth = -1): void
10861086
$this->quarantine(
10871087
$In,
10881088
$this->Loader->Configuration['quarantine']['quarantine_key'],
1089-
$this->IPAddr,
1089+
$this->Loader->IPAddr,
10901090
$qfu
10911091
);
10921092
$this->Loader->HashReference .= sprintf($this->Loader->L10N->getString('response.Quarantined as'), $qfu);

0 commit comments

Comments
 (0)