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)
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()
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