svtrid update

This commit is contained in:
Pinga 2023-08-25 14:57:15 +03:00
parent 266a3386ac
commit 5674434894
2 changed files with 5 additions and 1 deletions

View file

@ -11,6 +11,7 @@ return [
'epp_port' => 700,
'epp_pid' => '/var/run/epp.pid',
'epp_greeting' => 'Namingo EPP Server 1.0',
'epp_prefix' => 'namingo',
'ssl_cert' => '',
'ssl_key' => '',
];

View file

@ -73,7 +73,10 @@ function sendEppResponse($conn, $response) {
$conn->send($lengthData . $response);
}
function generateSvTRID($prefix = "Namingo") {
function generateSvTRID() {
global $c;
$prefix = $c['epp_prefix'];
// Get current timestamp
$timestamp = time();