Skip to content

Commit

Permalink
fix(server): use coorect timeout sec
Browse files Browse the repository at this point in the history
  • Loading branch information
g0rbe committed Sep 30, 2023
1 parent 5168327 commit 17e479d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func Parse(path string) error {

DNSServers = c.DNSServers

servers, err := dns.NewServersStr(dns.DefaultMaxRetries, time.Duration(dns.DefaultQueryTimeoutSec), c.DNSServers...)
servers, err := dns.NewServersStr(dns.DefaultMaxRetries, time.Duration(dns.DefaultQueryTimeoutSec)*time.Second, c.DNSServers...)
if err != nil {
return fmt.Errorf("failed to update DNS servers: %w", err)
}
Expand Down

0 comments on commit 17e479d

Please sign in to comment.