From 2a4b6ab7af088438890609b515248dec2ef714ca Mon Sep 17 00:00:00 2001 From: Marco Ferragina Date: Wed, 16 Oct 2024 22:24:52 +0200 Subject: [PATCH] increase dns query buffer size --- pkg/sshc/dns_proxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/sshc/dns_proxy.go b/pkg/sshc/dns_proxy.go index 7fd144a..c060048 100644 --- a/pkg/sshc/dns_proxy.go +++ b/pkg/sshc/dns_proxy.go @@ -129,7 +129,7 @@ func (p *DnsProxy) Start() error { log.Printf("dns-proxy listening on UDP: %s. Using remote dns: %s", p.proxyListenAddr, p.remoteDnsServer) // Handle incoming DNS queries - buf := make([]byte, 4096) + buf := make([]byte, 8192) for { n, clientAddr, err := udpConn.ReadFromUDP(buf) if err != nil {