mirror of
https://github.com/fernwerker/ownDynDNS.git
synced 2025-07-10 06:05:13 +02:00
added TXT handling
This commit is contained in:
parent
6ea33dcbf9
commit
0f13f4669c
1 changed files with 16 additions and 1 deletions
|
@ -34,6 +34,11 @@ final class Payload
|
|||
*/
|
||||
private $ipv6;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $txt;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
|
@ -65,6 +70,8 @@ final class Payload
|
|||
(
|
||||
!empty($this->ipv6) && $this->isValidIpv6()
|
||||
)
|
||||
||
|
||||
!empty($this->txt)
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -168,6 +175,14 @@ final class Payload
|
|||
return (bool)filter_var($this->ipv6, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getTxt()
|
||||
{
|
||||
return $this->txt;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
|
@ -175,4 +190,4 @@ final class Payload
|
|||
{
|
||||
return $this->force;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue