diff --git a/emhttp/plugins/dynamix/include/publish.php b/emhttp/plugins/dynamix/include/publish.php index 26fe36bdd..5cafba3b3 100644 --- a/emhttp/plugins/dynamix/include/publish.php +++ b/emhttp/plugins/dynamix/include/publish.php @@ -13,8 +13,8 @@ $socket, CURLOPT_POST => 1]); - if ($message) curl_setopt_array($com, [CURLOPT_POSTFIELDS => $message, CURLOPT_RETURNTRANSFER => 1]); + curl_setopt_array($com, [CURLOPT_UNIX_SOCKET_PATH => $socket, CURLOPT_RETURNTRANSFER => 1); + if ($message) curl_setopt_array($com, [CURLOPT_POSTFIELDS => $message, CURLOPT_POST => 1]]); $reply = curl_exec($com); curl_close($com); return $reply;