Update rfc3164.proto.php

This commit is contained in:
Namhyeon Go 2020-01-23 21:47:47 +09:00 committed by GitHub
parent ba31880a1f
commit 6fce47d9b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,7 @@ if(!check_function_exists("rfc3164_send_message")) {
$host = get_value_in_array("host", $_config, "");
$port = get_value_in_array("port", $_config, "");
if($enabled) {
if($enabled !== false) {
$sock = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
foreach(explode("\n", $message) as $line) {
$syslog_message = "<22>" . date('M d H:i:s ') . $program . ' ' . $component . ': ' . $line;