I bring you more untested code.

This commit is contained in:
flash 2023-04-12 02:29:56 +00:00
parent 992c07d817
commit d6f6e9031a

View file

@ -163,7 +163,7 @@ switch($_SERVER['HTTP_X_GITHUB_EVENT']) {
if(!empty($message)) {
var_dump($message);
$sock = fsockopen($config['boat']['host'], $config['boat']['port'], $errno, $errstr, 5);
$message = chr(0xF) . hash_hmac('sha256', $message, $config['boat']['secret']) . $message . chr(0xF);
$message = chr(1) . $message;
$message = hash_hmac('sha256', $message, $config['boat']['secret'], true) . $message;
fwrite($sock, $message);
fflush($sock);
}