aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/peerserver
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-01-06 18:10:20 +0800
committerFelix Lange <fjl@twurst.com>2015-01-06 19:23:37 +0800
commit4c8c115a7633e39b85738cd7919c7d3e3e722e7a (patch)
tree5e8ab7e5a41b119f9aeb988d00425032fde14a27 /cmd/peerserver
parent545e14691bd467992c905aa34fac71e25ef76108 (diff)
downloaddexon-4c8c115a7633e39b85738cd7919c7d3e3e722e7a.tar.gz
dexon-4c8c115a7633e39b85738cd7919c7d3e3e722e7a.tar.zst
dexon-4c8c115a7633e39b85738cd7919c7d3e3e722e7a.zip
cmd/peerserver: use NoDial, don't use seed peers
Diffstat (limited to 'cmd/peerserver')
-rw-r--r--cmd/peerserver/main.go15
1 files changed, 2 insertions, 13 deletions
diff --git a/cmd/peerserver/main.go b/cmd/peerserver/main.go
index ce0c7ba0c..7a5d5708e 100644
--- a/cmd/peerserver/main.go
+++ b/cmd/peerserver/main.go
@@ -18,9 +18,7 @@ package main
import (
"crypto/elliptic"
- "fmt"
"log"
- "net"
"os"
"github.com/ethereum/go-ethereum/crypto"
@@ -38,19 +36,10 @@ func main() {
Identity: p2p.NewSimpleClientIdentity("Ethereum(G)", "0.1", "Peer Server Two", marshaled),
ListenAddr: ":30301",
NAT: p2p.UPNP(),
+ NoDial: true,
}
if err := srv.Start(); err != nil {
- fmt.Println("could not start server:", err)
- os.Exit(1)
+ log.Fatal("could not start server:", err)
}
-
- // add seed peers
- seed, err := net.ResolveTCPAddr("tcp", "poc-8.ethdev.com:30303")
- if err != nil {
- fmt.Println("couldn't resolve:", err)
- } else {
- srv.SuggestPeer(seed.IP, seed.Port, nil)
- }
-
select {}
}