configure laddr & seed node from command line.

This commit is contained in:
Jae Kwon
2014-07-12 18:37:55 -07:00
parent cc9ea407aa
commit 78663a09fe
4 changed files with 39 additions and 27 deletions

View File

@ -1,7 +1,6 @@
package main
import (
"fmt"
"os"
"os/signal"
"time"
@ -176,7 +175,8 @@ func main() {
// Create & start node
n := NewNode()
l := p2p.NewDefaultListener("tcp", fmt.Sprintf("%v:%v", config.Config.IP, config.Config.Port))
log.Warnf(">> %v", config.Config.LAddr)
l := p2p.NewDefaultListener("tcp", config.Config.LAddr)
n.AddListener(l)
n.Start()