We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fae632e commit 40805b9Copy full SHA for 40805b9
internal/dns/dns.go
@@ -7,9 +7,9 @@
7
package dns
8
9
import (
10
+ "crypto/rand"
11
"fmt"
12
"log/slog"
- "crypto/rand"
13
"math/big"
14
"net"
15
"os"
@@ -544,7 +544,10 @@ func createQuery(recordName string, recordType uint16) *dns.Msg {
544
545
func randomFallbackServer() string {
546
cfg := config.GetConfig()
547
- n, err := rand.Int(rand.Reader, big.NewInt(int64(len(cfg.Dns.FallbackServers))))
+ n, err := rand.Int(
548
+ rand.Reader,
549
+ big.NewInt(int64(len(cfg.Dns.FallbackServers))),
550
+ )
551
if err != nil {
552
return ""
553
}
0 commit comments