mirror of
https://github.com/openresty/openresty.git
synced 2024-10-13 00:29:41 +00:00
feature: added nginx core patches needed by ngx_stream_lua_module's balancer_by_lua*.
Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
This commit is contained in:
committed by
Yichun Zhang (agentzh)
parent
1f2121b546
commit
4b594fdce6
@ -41,6 +41,21 @@ if [ "$answer" = "N" ]; then
|
||||
echo
|
||||
fi
|
||||
|
||||
answer=`$root/util/ver-ge "$main_ver" 1.13.3`
|
||||
if [ "$answer" = "Y" ]; then
|
||||
echo "$info_txt applying the stream_balancer_export patch for nginx"
|
||||
patch -p1 < $root/patches/nginx-$main_ver-stream_balancer_export.patch || exit 1
|
||||
echo
|
||||
|
||||
echo "$info_txt applying the stream_proxy_get_next_upstream_tries patch for nginx"
|
||||
patch -p1 < $root/patches/nginx-$main_ver-stream_proxy_get_next_upstream_tries.patch || exit 1
|
||||
echo
|
||||
|
||||
echo "$info_txt applying the stream_proxy_timeout_fields patch for nginx"
|
||||
patch -p1 < $root/patches/nginx-$main_ver-stream_proxy_timeout_fields.patch || exit 1
|
||||
echo
|
||||
fi
|
||||
|
||||
answer=`$root/util/ver-ge "$main_ver" 1.5.12`
|
||||
if [ "$answer" = "N" ]; then
|
||||
echo "$info_txt applying the patch for nginx security advisory (CVE-2014-0133)"
|
||||
|
Reference in New Issue
Block a user