Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/auto
diff options
context:
space:
mode:
authorAndrei Belov <defan@nginx.com>2016-06-20 10:41:17 +0300
committerAndrei Belov <defan@nginx.com>2016-06-20 10:41:17 +0300
commit72d4e5d7930a07a8753640061bbe9210c6a1f890 (patch)
tree5e084ad0920e1d6ce5ebed9c1c4f00fb0b6143f5 /auto
parent4f578bfcab740fcfbbb8824822803ad9b3f176cc (diff)
Set IP_BIND_ADDRESS_NO_PORT socket option for upstream sockets.
Diffstat (limited to 'auto')
-rwxr-xr-xauto/unix13
1 files changed, 13 insertions, 0 deletions
diff --git a/auto/unix b/auto/unix
index e6396ef2a..f83173b8b 100755
--- a/auto/unix
+++ b/auto/unix
@@ -341,6 +341,19 @@ ngx_feature_test="setsockopt(0, SOL_SOCKET, SO_BINDANY, NULL, 0)"
. auto/feature
+# Linux IP_BIND_ADDRESS_NO_PORT
+
+ngx_feature="IP_BIND_ADDRESS_NO_PORT"
+ngx_feature_name="NGX_HAVE_IP_BIND_ADDRESS_NO_PORT"
+ngx_feature_run=no
+ngx_feature_incs="#include <sys/socket.h>
+ #include <netinet/in.h>"
+ngx_feature_path=
+ngx_feature_libs=
+ngx_feature_test="setsockopt(0, IPPROTO_IP, IP_BIND_ADDRESS_NO_PORT, NULL, 0)"
+. auto/feature
+
+
# Linux transparent proxying
ngx_feature="IP_TRANSPARENT"