Compare commits
1 Commits
1.1.0
...
revert-49-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
67c34b789e |
@@ -28,7 +28,6 @@ class DNS implements API
|
|||||||
* @param string $content
|
* @param string $content
|
||||||
* @param int $ttl
|
* @param int $ttl
|
||||||
* @param bool $proxied
|
* @param bool $proxied
|
||||||
* @param string $priority
|
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function addRecord(
|
public function addRecord(
|
||||||
@@ -37,8 +36,7 @@ class DNS implements API
|
|||||||
string $name,
|
string $name,
|
||||||
string $content,
|
string $content,
|
||||||
int $ttl = 0,
|
int $ttl = 0,
|
||||||
bool $proxied = true,
|
bool $proxied = true
|
||||||
string $priority = ''
|
|
||||||
): bool {
|
): bool {
|
||||||
$options = [
|
$options = [
|
||||||
'type' => $type,
|
'type' => $type,
|
||||||
@@ -51,10 +49,6 @@ class DNS implements API
|
|||||||
$options['ttl'] = $ttl;
|
$options['ttl'] = $ttl;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($priority)) {
|
|
||||||
$options['priority'] = $priority;
|
|
||||||
}
|
|
||||||
|
|
||||||
$user = $this->adapter->post('zones/' . $zoneID . '/dns_records', [], $options);
|
$user = $this->adapter->post('zones/' . $zoneID . '/dns_records', [], $options);
|
||||||
|
|
||||||
$body = json_decode($user->getBody());
|
$body = json_decode($user->getBody());
|
||||||
|
|||||||
Reference in New Issue
Block a user