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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user