]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Improve checkFunction example for downstreams guide 8690/head
authorJonas Schäfer <j.wielicki@sotecware.net>
Sun, 12 Jan 2020 09:59:49 +0000 (10:59 +0100)
committerJonas Schäfer <j.wielicki@sotecware.net>
Sun, 12 Jan 2020 09:59:49 +0000 (10:59 +0100)
The check function was defined, but not used, making the example
slightly confusing as to how to use it correctly.

pdns/dnsdistdist/docs/guides/downstreams.rst

index 04cb57a0dd9b5e197a500b528bf70578e3e689e3..a478c8eacee057b4d3073f665360454048d705ea 100644 (file)
@@ -55,7 +55,7 @@ The following example sets the CD flag to true and change the QName to "powerdns
       return newDNSName("powerdns.com."), dnsdist.AAAA, qclass
     end
 
-    newServer("2620:0:0ccd::2")
+    newServer({address="2620:0:0ccd::2", checkFunction=myHealthCheck})
 
 Source address selection
 ------------------------