From 6b1b5a4a2a8b315f4d0e7a08ab10563653711a92 Mon Sep 17 00:00:00 2001 From: zelig Date: Wed, 22 Apr 2015 14:55:01 +0100 Subject: cli/js console: if corsDomain is not given to startRpc, we fall back to value set on command line with `-corsDomain` --- cmd/geth/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd/geth/main.go') diff --git a/cmd/geth/main.go b/cmd/geth/main.go index 70be2ed2e..dd87632b6 100644 --- a/cmd/geth/main.go +++ b/cmd/geth/main.go @@ -296,7 +296,7 @@ func console(ctx *cli.Context) { } startEth(ctx, ethereum) - repl := newJSRE(ethereum, ctx.String(utils.JSpathFlag.Name), true) + repl := newJSRE(ethereum, ctx.String(utils.JSpathFlag.Name), true, ctx.GlobalString(utils.RPCCORSDomainFlag.Name)) repl.interactive() ethereum.Stop() @@ -311,7 +311,7 @@ func execJSFiles(ctx *cli.Context) { } startEth(ctx, ethereum) - repl := newJSRE(ethereum, ctx.String(utils.JSpathFlag.Name), false) + repl := newJSRE(ethereum, ctx.String(utils.JSpathFlag.Name), false, ctx.GlobalString(utils.RPCCORSDomainFlag.Name)) for _, file := range ctx.Args() { repl.exec(file) } -- cgit