]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: lua: fix Proxy.get_mode() output
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 23 Nov 2023 15:02:14 +0000 (16:02 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 24 Nov 2023 15:27:55 +0000 (16:27 +0100)
Proxy.get_mode() function internally relies on proxy_mode_str() to return
the proxy mode. The current function description is exhaustive about the
possible outputs for the function. I can't tell if it's relevant or not
but it's subject to changes. Here it is the case, the documentation
indicates that "health" mode may be returned, which cannot happen
since 77e0daef9 ("MEDIUM: proxy: remove obsolete "mode health"").

This should be backported up to 2.4

doc/lua-api/index.rst

index eadf2f2f38ff316f044255e7a99fc6bc64b03482..fb39d33089857beade25316c41bd01502c39e28e 100644 (file)
@@ -1140,7 +1140,7 @@ Proxy class
 
   :param class_proxy px: A :ref:`proxy_class` which indicates the manipulated
    proxy.
-  :returns: a string "tcp", "http", "health" or "unknown"
+  :returns: a string "tcp", "http" or "unknown"
 
 .. js:function:: Proxy.get_srv_act(px)