fix(win): Make buffer very large
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details

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
This commit is contained in:
Sam Therapy 2022-12-10 15:11:21 +01:00
parent 4349aec1f2
commit 520991f63f
Signed by: sam
GPG Key ID: 4D8B07C18F31ACBD
1 changed files with 1 additions and 1 deletions

View File

@ -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.