aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/mist
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-04-01 18:38:29 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-04-01 18:38:29 +0800
commit720d978e356bba74160dbdd95b51bcb8087fb92e (patch)
tree27e56e9c426331c660331e4d0b8bf81b10ac95a4 /cmd/mist
parent4e8f8cfab701bb6c4ad2b8cf166d642f408ca398 (diff)
parent35d00e00c52ad7d7c13e53b598e61fc332052f7b (diff)
downloaddexon-720d978e356bba74160dbdd95b51bcb8087fb92e.tar
dexon-720d978e356bba74160dbdd95b51bcb8087fb92e.tar.gz
dexon-720d978e356bba74160dbdd95b51bcb8087fb92e.tar.bz2
dexon-720d978e356bba74160dbdd95b51bcb8087fb92e.tar.lz
dexon-720d978e356bba74160dbdd95b51bcb8087fb92e.tar.xz
dexon-720d978e356bba74160dbdd95b51bcb8087fb92e.tar.zst
dexon-720d978e356bba74160dbdd95b51bcb8087fb92e.zip
Merge pull request #589 from tgerring/corssetting
Configurable CORS domain
Diffstat (limited to 'cmd/mist')
-rw-r--r--cmd/mist/main.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmd/mist/main.go b/cmd/mist/main.go
index fab651b22..6780cfb3a 100644
--- a/cmd/mist/main.go
+++ b/cmd/mist/main.go
@@ -47,12 +47,19 @@ var (
Usage: "absolute path to GUI assets directory",
Value: common.DefaultAssetPath(),
}
+ rpcCorsFlag = utils.RPCCORSDomainFlag
)
func init() {
+ // Mist-specific default
+ if len(rpcCorsFlag.Value) == 0 {
+ rpcCorsFlag.Value = "http://localhost"
+ }
+
app.Action = run
app.Flags = []cli.Flag{
assetPathFlag,
+ rpcCorsFlag,
utils.BootnodesFlag,
utils.DataDirFlag,