I bring you more untested code.
This commit is contained in:
parent
992c07d817
commit
d6f6e9031a
1 changed files with 2 additions and 2 deletions
|
@ -163,7 +163,7 @@ switch($_SERVER['HTTP_X_GITHUB_EVENT']) {
|
||||||
if(!empty($message)) {
|
if(!empty($message)) {
|
||||||
var_dump($message);
|
var_dump($message);
|
||||||
$sock = fsockopen($config['boat']['host'], $config['boat']['port'], $errno, $errstr, 5);
|
$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);
|
fwrite($sock, $message);
|
||||||
fflush($sock);
|
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue