Update rfc3164.proto.php
This commit is contained in:
parent
ba31880a1f
commit
6fce47d9b6
|
@ -27,7 +27,7 @@ if(!check_function_exists("rfc3164_send_message")) {
|
||||||
$host = get_value_in_array("host", $_config, "");
|
$host = get_value_in_array("host", $_config, "");
|
||||||
$port = get_value_in_array("port", $_config, "");
|
$port = get_value_in_array("port", $_config, "");
|
||||||
|
|
||||||
if($enabled) {
|
if($enabled !== false) {
|
||||||
$sock = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
|
$sock = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
|
||||||
foreach(explode("\n", $message) as $line) {
|
foreach(explode("\n", $message) as $line) {
|
||||||
$syslog_message = "<22>" . date('M d H:i:s ') . $program . ' ' . $component . ': ' . $line;
|
$syslog_message = "<22>" . date('M d H:i:s ') . $program . ' ' . $component . ': ' . $line;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user