Merge pull request #1 from dkua/fix-port

Fixed deprecated port problem.
This commit is contained in:
Andrey Petrov 2014-07-03 10:25:14 -07:00
commit 715639afb2
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ import (
"net"
"sync"
"github.com/conformal/btcwire"
"github.com/conformal/btcnet"
)
func GetSeedsFromDNS(dnsSeeds []string) []string {
@ -33,7 +33,7 @@ func GetSeedsFromDNS(dnsSeeds []string) []string {
seeds := []string{}
for ips := range results {
for _, ip := range ips {
seeds = append(seeds, net.JoinHostPort(ip.String(), btcwire.MainPort))
seeds = append(seeds, net.JoinHostPort(ip.String(), btcnet.MainNetParams.DefaultPort))
}
}