2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

make "lwresd -p port" work again.

This commit is contained in:
Mark Andrews
2001-09-21 12:34:19 +00:00
parent 9cc98b104e
commit fe57fad800

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: server.c,v 1.345 2001/09/20 21:51:22 gson Exp $ */
/* $Id: server.c,v 1.346 2001/09/21 12:34:19 marka Exp $ */
#include <config.h>
@@ -1095,7 +1095,10 @@ configure_forward(cfg_obj_t *config, dns_view_t *view, dns_name_t *origin,
/*
* Determine which port to send forwarded requests to.
*/
CHECKM(ns_config_getport(config, &port), "port");
if (ns_g_lwresdonly && ns_g_port != 0)
port = ns_g_port;
else
CHECKM(ns_config_getport(config, &port), "port");
if (forwarders != NULL) {
portobj = cfg_tuple_get(forwarders, "port");