updated SREPO, removed useles “content-type” header, forced protocol_version to http 1.1, updated user_agent

This commit is contained in:
pezcurrel 2023-11-20 12:25:19 +01:00
parent a9a3801fef
commit c61e9ceecc

View file

@ -20,8 +20,8 @@ require 'lib/ckratelimit.php';
require 'lib/ght.php';
const SNAME='acck';
const SVERS='0.1.4';
const SREPO='https://git.lattuga.net/pongrebio/acck';
const SVERS='0.1.5';
const SREPO='https://git.lattuga.net/jones/acck';
const MAXACCLEN=30+253+2;
const MAXHOSTLEN=253;
const INIFP='sec/conf.ini';
@ -125,10 +125,10 @@ if ($errors=='' && $_GET['acctock']!='' && $_GET['host']!='') {
echo "<div class=\"horsep\"></div>\n";
$context=[
'http'=>[
'header'=>"Content-type: application/x-www-form-urlencoded\r\n",
'method'=>'GET',
'ignore_errors'=>true,
'user_agent'=>'Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0',
'protocol_version'=>1.1,
'user_agent'=>'Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/119.0',
'timeout'=>5
]
];