mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-21 18:16:03 +02:00
Small fixes
This commit is contained in:
parent
9bdc8fecdd
commit
bf1de16332
3 changed files with 14 additions and 13 deletions
|
@ -17,7 +17,7 @@ We're on a mission to make **Namingo** the best it can be, and we need your expe
|
|||
|
||||
- **WHOIS and DAS Servers**: These servers are almost ready to go! They are functional but require additional testing and security hardening to ensure reliability and safety.
|
||||
|
||||
- **EPP Server**: Our work is ongoing here. Basic commands like domain/contact check and info are operational. However, it's in need of further testing, security measures, and the addition of more commands.
|
||||
- **EPP Server**: Our EPP Server is progressing steadily. Currently, the Check, Create, Info, Poll, Delete, and Renew commands are fully operational. We're actively developing the Update and Transfer commands. Extensions like RGP, SecDNS, and others are also on our development roadmap. As always, we're committed to ensuring security and thorough testing as we continue to enhance our server capabilities.
|
||||
|
||||
- **RDAP Server**: Nearing completion. The primary focus is on formatting more data for the output. Like the others, it also requires further testing and security hardening.
|
||||
|
||||
|
|
|
@ -31,6 +31,7 @@ class EppWriter {
|
|||
'info_funds' => '_info_funds',
|
||||
'update_host' => '_common',
|
||||
'poll' => '_poll',
|
||||
'error' => '_common',
|
||||
'unknown' => '_common',
|
||||
];
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ function sendGreeting($conn) {
|
|||
'urn:ietf:params:xml:ns:host-1.0'
|
||||
],
|
||||
'extensions' => [
|
||||
'http://www.namingo.org/epp/nBalance-1.0',
|
||||
'https://namingo.org/epp/funds-1.0',
|
||||
'http://www.namingo.org/epp/nIdent-1.0',
|
||||
'urn:ietf:params:xml:ns:secDNS-1.1',
|
||||
'urn:ietf:params:xml:ns:rgp-1.0',
|
||||
|
@ -49,17 +49,17 @@ function sendGreeting($conn) {
|
|||
}
|
||||
|
||||
function sendEppError($conn, $code, $msg) {
|
||||
$errorResponse = <<<XML
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
|
||||
<response>
|
||||
<result code="$code">
|
||||
<msg>$msg</msg>
|
||||
</result>
|
||||
</response>
|
||||
</epp>
|
||||
XML;
|
||||
sendEppResponse($conn, $errorResponse);
|
||||
$response = [
|
||||
'command' => 'error',
|
||||
'resultCode' => $code,
|
||||
'msg' => $msg,
|
||||
'clTRID' => '1',
|
||||
'svTRID' => generateSvTRID(),
|
||||
];
|
||||
|
||||
$epp = new EPP\EppWriter();
|
||||
$xml = $epp->epp_writer($response);
|
||||
sendEppResponse($conn, $xml);
|
||||
}
|
||||
|
||||
function sendEppResponse($conn, $response) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue