1
0
Fork 0
mirror of https://github.com/fernwerker/ownDynDNS.git synced 2025-07-10 14:15:14 +02:00

added TXT handling

This commit is contained in:
NiiWiiCamo 2023-08-22 12:55:35 +02:00 committed by GitHub
parent 6ea33dcbf9
commit 0f13f4669c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,6 +34,11 @@ final class Payload
*/ */
private $ipv6; private $ipv6;
/**
* @var string
*/
private $txt;
/** /**
* @var bool * @var bool
*/ */
@ -65,6 +70,8 @@ final class Payload
( (
!empty($this->ipv6) && $this->isValidIpv6() !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 (bool)filter_var($this->ipv6, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6);
} }
/**
* @return string
*/
public function getTxt()
{
return $this->txt;
}
/** /**
* @return bool * @return bool
*/ */
@ -175,4 +190,4 @@ final class Payload
{ {
return $this->force; return $this->force;
} }
} }