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

Add a TCP only option to server/peer

This commit is contained in:
Francis Dupont
2014-12-02 14:17:59 +01:00
parent fc63119c8b
commit 5c5c6d289d
21 changed files with 409 additions and 11 deletions

View File

@@ -1251,6 +1251,11 @@ configure_peer(const cfg_obj_t *cpeer, isc_mem_t *mctx, dns_peer_t **peerp) {
CHECK(dns_peer_setmaxudp(peer, (isc_uint16_t)udpsize));
}
obj = NULL;
(void)cfg_map_get(cpeer, "tcp-only", &obj);
if (obj != NULL)
CHECK(dns_peer_setforcetcp(peer, cfg_obj_asboolean(obj)));
obj = NULL;
(void)cfg_map_get(cpeer, "transfers", &obj);
if (obj != NULL)