mirror of
https://github.com/fernwerker/ownDynDNS.git
synced 2025-07-12 15:05:42 +02:00
* ad ability to update also wildcard record
This commit is contained in:
parent
eb34f44292
commit
3ce566787c
3 changed files with 33 additions and 10 deletions
|
@ -19,6 +19,11 @@ final class Payload
|
|||
*/
|
||||
private $domain;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $mode;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
|
@ -87,6 +92,23 @@ final class Payload
|
|||
return $this->domain;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function getMatcher()
|
||||
{
|
||||
switch ($this->mode) {
|
||||
case 'both':
|
||||
return ['@', '*'];
|
||||
|
||||
case '*':
|
||||
return ['*'];
|
||||
|
||||
default:
|
||||
return ['@'];
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* there is no good way to get the correct "registrable" Domain without external libs!
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue