aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum.go
diff options
context:
space:
mode:
authorJarrad Hope <me@jarradhope.com>2014-03-07 02:11:38 +0800
committerJarrad Hope <me@jarradhope.com>2014-03-07 02:11:38 +0800
commit9d887234eafb5884df9b2a90e3cb876688af0c21 (patch)
treea194cedab3a20b8bdc97ca021c7f932441853471 /ethereum.go
parente2e338929f8c1fb0bc424d0f5ca3353c6f36ec77 (diff)
downloadgo-tangerine-9d887234eafb5884df9b2a90e3cb876688af0c21.tar
go-tangerine-9d887234eafb5884df9b2a90e3cb876688af0c21.tar.gz
go-tangerine-9d887234eafb5884df9b2a90e3cb876688af0c21.tar.bz2
go-tangerine-9d887234eafb5884df9b2a90e3cb876688af0c21.tar.lz
go-tangerine-9d887234eafb5884df9b2a90e3cb876688af0c21.tar.xz
go-tangerine-9d887234eafb5884df9b2a90e3cb876688af0c21.tar.zst
go-tangerine-9d887234eafb5884df9b2a90e3cb876688af0c21.zip
Small Optimization on port
Diffstat (limited to 'ethereum.go')
-rw-r--r--ethereum.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ethereum.go b/ethereum.go
index 6c19a13f9..795f2cd52 100644
--- a/ethereum.go
+++ b/ethereum.go
@@ -270,13 +270,13 @@ func (s *Ethereum) Start() {
// Iterate SRV nodes
for _, n := range nodes {
target := n.Target
- port := n.Port
+ port := strconv.Itoa(int(n.Port))
// Resolve target to ip (Go returns list, so may resolve to multiple ips?)
addr, err := net.LookupHost(target)
if(err == nil) {
for _, a := range addr {
// Build string out of SRV port and Resolved IP
- peer := net.JoinHostPort(a, strconv.Itoa(int(port)))
+ peer := net.JoinHostPort(a, port)
log.Println("Found DNS Bootstrap Peer:", peer)
peers = append(peers, peer)
}