mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-24 11:28:29 +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
|
@ -7,6 +7,8 @@ return [
|
|||
'db_database' => 'registry',
|
||||
'db_username' => 'your_username',
|
||||
'db_password' => 'your_password',
|
||||
'das_ipv4' => '0.0.0.0',
|
||||
'das_ipv6' => '::', // Set to false if no IPv6 support
|
||||
'rately' => false,
|
||||
'limit' => 1000,
|
||||
'period' => 60,
|
||||
|
|
|
@ -25,7 +25,10 @@ $pool = new Swoole\Database\PDOPool(
|
|||
);
|
||||
|
||||
// Create a Swoole TCP server
|
||||
$server = new Server('0.0.0.0', 1043);
|
||||
$server = new Server($c['das_ipv4'], 1043);
|
||||
if ($c['das_ipv6'] !== false) {
|
||||
$server->addListener($c['das_ipv6'], 1043, SWOOLE_SOCK_TCP6);
|
||||
}
|
||||
$server->set([
|
||||
'daemonize' => false,
|
||||
'log_file' => '/var/log/namingo/das_application.log',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue