Skip to content

Commit

Permalink
increase dns query buffer size
Browse files Browse the repository at this point in the history
  • Loading branch information
ferama committed Oct 16, 2024
1 parent b6cde6a commit 2a4b6ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sshc/dns_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2a4b6ab

Please sign in to comment.