Hi all,

I was trying to compile the 1.8 branch under DragonflyBSD and went into a
build failure, thus
this patch proposal.

Kindest regards.
From 21d6dfd1a038e90ecb5103fb52322eae29fbbb86 Mon Sep 17 00:00:00 2001
From: David Carlier <devne...@gmail.com>
Date: Fri, 7 Apr 2017 20:48:00 +0100
Subject: [PATCH] BUG/MINOR: server : no transparent proxy for DragonflyBSD

IP*_BINDANY is not defined under this system thus it is
necessary to make those fields access since CONFIG_HAP_TRANSPARENT
is not defined.
---
 src/server.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/server.c b/src/server.c
index 23343d86..ddaf4f87 100644
--- a/src/server.c
+++ b/src/server.c
@@ -1742,12 +1742,14 @@ int parse_server(const char *file, int linenum, char **args, struct proxy *curpr
 					}
 				}
 			}
+#ifdef CONFIG_HAP_TRANSPARENT
 			if (curproxy->defsrv.conn_src.bind_hdr_name != NULL) {
 				newsrv->conn_src.bind_hdr_name = strdup(curproxy->defsrv.conn_src.bind_hdr_name);
 				newsrv->conn_src.bind_hdr_len = strlen(curproxy->defsrv.conn_src.bind_hdr_name);
 			}
 			newsrv->conn_src.bind_hdr_occ = curproxy->defsrv.conn_src.bind_hdr_occ;
 			newsrv->conn_src.tproxy_addr = curproxy->defsrv.conn_src.tproxy_addr;
+#endif
 			if (curproxy->defsrv.conn_src.iface_name != NULL)
 				newsrv->conn_src.iface_name = strdup(curproxy->defsrv.conn_src.iface_name);
 
-- 
2.11.0

Reply via email to