aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-02-03 02:44:59 +0800
committerobscuren <geffobscura@gmail.com>2014-02-03 02:44:59 +0800
commitcce842314fa61fcd2a4b205b04313d9728ea2a57 (patch)
treef7b9f2530a0c79d515efaf396685f87a21c2644c
parent928a1303f6b53d155fa43a323d28ff440f3ed2d2 (diff)
downloadgo-tangerine-cce842314fa61fcd2a4b205b04313d9728ea2a57.tar.gz
go-tangerine-cce842314fa61fcd2a4b205b04313d9728ea2a57.tar.zst
go-tangerine-cce842314fa61fcd2a4b205b04313d9728ea2a57.zip
UPnP support
-rw-r--r--ethereum.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/ethereum.go b/ethereum.go
index b0e242819..6d6d25bd4 100644
--- a/ethereum.go
+++ b/ethereum.go
@@ -19,10 +19,14 @@ const Debug = true
var StartConsole bool
var StartMining bool
+var UseUPnP bool
+var OutboundPort string
func Init() {
flag.BoolVar(&StartConsole, "c", false, "debug and testing console")
flag.BoolVar(&StartMining, "m", false, "start dagger mining")
+ flag.BoolVar(&UseUPnP, "upnp", false, "enable UPnP support")
+ flag.StringVar(&OutboundPort, "port", "30303", "listening port")
flag.Parse()
}
@@ -52,7 +56,7 @@ func main() {
log.Printf("Starting Ethereum v%s\n", ethutil.Config.Ver)
// Instantiated a eth stack
- ethereum, err := eth.New(eth.CapDefault)
+ ethereum, err := eth.New(eth.CapDefault, UseUPnP)
if err != nil {
log.Println(err)
return