mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-01 08:33:22 +02:00
Added easier way to set IPv6 support in DAS/EPP/WHOIS
This commit is contained in:
parent
bce5aee124
commit
0974c7578d
6 changed files with 16 additions and 2 deletions
|
@ -8,6 +8,7 @@ return [
|
|||
'db_username' => 'your_username',
|
||||
'db_password' => 'your_password',
|
||||
'epp_host' => '0.0.0.0',
|
||||
'epp_host_ipv6' => '::', // Set to false if no IPv6 support
|
||||
'epp_port' => 700,
|
||||
'epp_pid' => '/var/run/epp.pid',
|
||||
'epp_greeting' => 'Namingo EPP Server 1.0',
|
||||
|
|
|
@ -45,6 +45,9 @@ $pool = new Swoole\Database\PDOPool(
|
|||
|
||||
Swoole\Runtime::enableCoroutine();
|
||||
$server = new Server($c['epp_host'], $c['epp_port']);
|
||||
if ($c['epp_host_ipv6'] !== false) {
|
||||
$server->addListener($c['epp_host_ipv6'], $c['epp_port'], SWOOLE_SOCK_TCP6);
|
||||
}
|
||||
$server->set([
|
||||
'enable_coroutine' => true,
|
||||
'log_file' => '/var/log/namingo/epp_application.log',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue