mirror of
https://github.com/getnamingo/registry.git
synced 2025-05-20 03:19:21 +02:00
svtrid update
This commit is contained in:
parent
266a3386ac
commit
5674434894
2 changed files with 5 additions and 1 deletions
|
@ -11,6 +11,7 @@ return [
|
||||||
'epp_port' => 700,
|
'epp_port' => 700,
|
||||||
'epp_pid' => '/var/run/epp.pid',
|
'epp_pid' => '/var/run/epp.pid',
|
||||||
'epp_greeting' => 'Namingo EPP Server 1.0',
|
'epp_greeting' => 'Namingo EPP Server 1.0',
|
||||||
|
'epp_prefix' => 'namingo',
|
||||||
'ssl_cert' => '',
|
'ssl_cert' => '',
|
||||||
'ssl_key' => '',
|
'ssl_key' => '',
|
||||||
];
|
];
|
|
@ -73,7 +73,10 @@ function sendEppResponse($conn, $response) {
|
||||||
$conn->send($lengthData . $response);
|
$conn->send($lengthData . $response);
|
||||||
}
|
}
|
||||||
|
|
||||||
function generateSvTRID($prefix = "Namingo") {
|
function generateSvTRID() {
|
||||||
|
global $c;
|
||||||
|
$prefix = $c['epp_prefix'];
|
||||||
|
|
||||||
// Get current timestamp
|
// Get current timestamp
|
||||||
$timestamp = time();
|
$timestamp = time();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue