mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-06 06:06:49 +00:00
[NOD-361] Fixed Nil dereference in connmgr/seed.go. (#427)
This commit is contained in:
parent
13cf1f7715
commit
982340456d
@ -43,9 +43,9 @@ func SeedFromDNS(dagParams *dagconfig.Params, reqServices wire.ServiceFlag, incl
|
||||
subnetworkID *subnetworkid.SubnetworkID, lookupFn LookupFunc, seedFn OnSeed) {
|
||||
|
||||
var dnsSeeds []string
|
||||
configSeed := config.MainConfig().DNSSeed
|
||||
if configSeed != "" {
|
||||
dnsSeeds = []string{configSeed}
|
||||
mainConfig := config.MainConfig()
|
||||
if mainConfig != nil && mainConfig.DNSSeed != "" {
|
||||
dnsSeeds = []string{mainConfig.DNSSeed}
|
||||
} else {
|
||||
dnsSeeds = dagParams.DNSSeeds
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user