]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: contrib/spoa_server: Add random IP score
authorDaniel Corbett <dcorbett@haproxy.com>
Tue, 11 Jun 2019 14:04:15 +0000 (10:04 -0400)
committerWilly Tarreau <w@1wt.eu>
Tue, 11 Jun 2019 17:27:42 +0000 (19:27 +0200)
commit061766859cc25183634daec39b5f390752c501b0
treefe8566aea8413220fef4fb3dee8fd04c85eee46f
parent4e0fa55dcd5c1fd7ac113cce866759b1010ddf2d
MINOR: contrib/spoa_server: Add random IP score

The example configuration uses sess.ip_score however this variable
is not referenced within the example scripts.  This patch adds support
for sess.ip_score to the python + lua scripts and generates a
random number between 1 and 100.
contrib/spoa_server/ps_lua.lua
contrib/spoa_server/ps_python.py