Pārlūkot izejas kodu

use tcp to locally query the registry

Miraty 9 mēneši atpakaļ
vecāks
revīzija
6bf0196437
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      fn/common.php

+ 1 - 0
fn/common.php

@@ -32,6 +32,7 @@ function kdig(string $name, string $type, string $server = NULL): array {
 		$name,
 		$name,
 		'-t',
 		'-t',
 		$type,
 		$type,
+		...(($server === CONF['reg']['address']) ? ['+tcp'] : []),
 		...(isset($server) ? ['@' . $server] : []),
 		...(isset($server) ? ['@' . $server] : []),
 	], $output, $code);
 	], $output, $code);
 	if ($code !== 0)
 	if ($code !== 0)