mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-05 06:37:02 +02:00
Now that native mailers configuration is only usable with Lua mailers, Willy noticed that we lack a way to warn the user if mailers were previously configured on an older version but Lua mailers were not loaded, which could trick the user into thinking mailers keep working when transitionning to 3.2 while it is not. In this patch we add the 'core.use_native_mailers_config()' Lua function which should be called in Lua script body before making use of 'Proxy:get_mailers()' function to retrieve legacy mailers configuration from haproxy main config. This way haproxy effectively knows that the native mailers config is actually being used from Lua (which indicates user correctly migrated from native mailers to Lua mailers), else if mailers are configured but not used from Lua then haproxy warns the user about the fact that they will be ignored unless they are used from Lua. (e.g.: using the provided 'examples/lua/mailers.lua' to ease transition) |
||
---|---|---|
.. | ||
errorfiles | ||
lua | ||
basic-config-edge.cfg | ||
content-sw-sample.cfg | ||
games.cfg | ||
haproxy.init | ||
mptcp-backend.py | ||
mptcp.cfg | ||
option-http_proxy.cfg | ||
quick-test.cfg | ||
socks4.cfg | ||
traces.cfg | ||
transparent_proxy.cfg | ||
wurfl-example.cfg |