]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fix Lua proxy protocol values syntax in the documentation
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 13 Mar 2020 15:38:24 +0000 (16:38 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 17 Mar 2020 13:12:56 +0000 (14:12 +0100)
pdns/dnsdistdist/docs/reference/dq.rst
pdns/dnsdistdist/docs/rules-actions.rst
regression-tests.dnsdist/test_ProxyProtocol.py

index d758b942f5a6d2b3afc6fe16be73751c06c85af3..b1b4163c9a9cc84a0b36dd5b33167707fde25e47 100644 (file)
@@ -210,7 +210,7 @@ This state can be modified from the various hooks.
 
     Set the Proxy-Protocol Type-Length values to send to the backend along with this query.
 
-    :param table values: A table of types and values to send, for example: ``{ ["0"] = foo", ["42"] = "bar" }``
+    :param table values: A table of types and values to send, for example: ``{ [0] = foo", [42] = "bar" }``
 
   .. method:: DNSQuestion:setTag(key, value)
 
index 4ff2fcb57df2b8977b18830a8a50df2dd104d522..f44ec557666cd3a0509906cf059812b0cbcdb3a7 100644 (file)
@@ -1257,7 +1257,7 @@ The following actions exist.
 
   Set the Proxy-Protocol Type-Length values to be sent to the server along with this query to ``values``.
 
-  :param table values: A table of types and values to send, for example: ``{ ["0"] = foo", ["42"] = "bar" }``
+  :param table values: A table of types and values to send, for example: ``{ [0] = foo", [42] = "bar" }``
 
 .. function:: SkipCacheAction()
 
index 660346516d2e181dc8fbde03492352a870474dcd..ab6c1a208c8b9632430ba527d0e1ace9c38d3445 100644 (file)
@@ -170,7 +170,7 @@ class TestProxyProtocol(ProxyProtocolTest):
     newServer{address="127.0.0.1:%d", useProxyProtocol=true}
 
     function addValues(dq)
-      local values = { ["0"]="foo", ["42"]="bar" }
+      local values = { [0]="foo", [42]="bar" }
       dq:setProxyProtocolValues(values)
       return DNSAction.None
     end