1
0
Fork 0
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:
b2un0 2019-11-08 17:34:21 +01:00
parent eb34f44292
commit 3ce566787c
3 changed files with 33 additions and 10 deletions

View file

@ -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!
*