Revert "Merge tag 'v2.10.6'"
This reverts commit122ea4ab9e
, reversing changes made toc54a11e250
.
This commit is contained in:
@@ -8,13 +8,13 @@ class LogNet extends Extension
|
||||
{
|
||||
private int $count = 0;
|
||||
|
||||
public function onInitExt(InitExtEvent $event): void
|
||||
public function onInitExt(InitExtEvent $event)
|
||||
{
|
||||
global $config;
|
||||
$config->set_default_string("log_net_host", "127.0.0.1:35353");
|
||||
}
|
||||
|
||||
public function onLog(LogEvent $event): void
|
||||
public function onLog(LogEvent $event)
|
||||
{
|
||||
global $user;
|
||||
|
||||
@@ -31,7 +31,7 @@ class LogNet extends Extension
|
||||
}
|
||||
}
|
||||
|
||||
private function msg(string $data): void
|
||||
private function msg($data)
|
||||
{
|
||||
global $config;
|
||||
$host = $config->get_string("log_net_host");
|
||||
@@ -45,7 +45,7 @@ class LogNet extends Extension
|
||||
$host = $parts[0];
|
||||
$port = (int)$parts[1];
|
||||
$fp = fsockopen("udp://$host", $port, $errno, $errstr);
|
||||
if (!$fp) {
|
||||
if (! $fp) {
|
||||
return;
|
||||
}
|
||||
fwrite($fp, "$data\n");
|
||||
|
Reference in New Issue
Block a user