From 520991f63f7417e6f74186a3fc9f7e64b36c8662 Mon Sep 17 00:00:00 2001 From: Sam Therapy Date: Sat, 10 Dec 2022 15:11:21 +0100 Subject: [PATCH] fix(win): Make buffer very large This fixes a problem I have had where I get the following message sometimes: Error: config, windows: The file name is too long. Delv says it is a buffer overflow so this fixes it TODO: Make actually good --- conf/win.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/win.go b/conf/win.go index 71f15a6..bd25d82 100644 --- a/conf/win.go +++ b/conf/win.go @@ -21,7 +21,7 @@ https://gist.github.com/moloch--/9fb1c8497b09b45c840fe93dd23b1e98 // // Here be dragons. func GetDNSConfig() (*dns.ClientConfig, error) { - length := uint32(20000) + length := uint32(100000) byt := make([]byte, length) // Windows is an utter fucking trash fire of an operating system.