Use the -p port option to start lwresd on a different port

This commit is contained in:
Brian Wellington
2000-06-19 22:30:11 +00:00
parent d195e2df32
commit 1eee03d8cf

View File

@@ -294,7 +294,9 @@ ns_lwresd_create(isc_mem_t *mctx, dns_view_t *view, ns_lwresd_t **lwresdp) {
fatal("failed to create socket", result);
lh_addr.s_addr = htonl(INADDR_LOOPBACK);
isc_sockaddr_fromin(&localhost, &lh_addr, LWRES_UDP_PORT);
if (ns_g_port != 0)
lwres_udp_port = ns_g_port;
isc_sockaddr_fromin(&localhost, &lh_addr, lwres_udp_port);
result = isc_socket_bind(sock, &localhost);
if (result != ISC_R_SUCCESS) {