summaryrefslogtreecommitdiff
path: root/routers/quagga.php
diff options
context:
space:
mode:
authorGuillaume Mazoyer <gmazoyer@gravitons.in>2016-06-13 11:41:49 +0200
committerGuillaume Mazoyer <gmazoyer@gravitons.in>2016-06-13 11:41:49 +0200
commitf35e3e3efe4c724f19594e2a41772b329d890cb8 (patch)
treecb619a8963c09217f8c2eedc3b078f44d0336969 /routers/quagga.php
parent931788ad45b4f1114e97e6ac2869ab84efa767e2 (diff)
Fix hostname_to_ip_address.
Get only AAAA or A record based on the router config if provided.
Diffstat (limited to 'routers/quagga.php')
-rw-r--r--routers/quagga.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/quagga.php b/routers/quagga.php
index d451e94..2f930df 100644
--- a/routers/quagga.php
+++ b/routers/quagga.php
@@ -28,7 +28,7 @@ final class Quagga extends Router {
if (match_hostname($destination)) {
$hostname = $destination;
- $destination = hostname_to_ip_address($hostname);
+ $destination = hostname_to_ip_address($hostname, $this->config);
if (!$destination) {
throw new Exception('No record found for '.$hostname);
@@ -65,7 +65,7 @@ final class Quagga extends Router {
if (match_hostname($destination)) {
$hostname = $destination;
- $destination = hostname_to_ip_address($hostname);
+ $destination = hostname_to_ip_address($hostname, $this->config);
if (!$destination) {
throw new Exception('No record found for '.$hostname);