Merge pull request #589 from tgerring/corssetting

Configurable CORS domain
This commit is contained in:
Jeffrey Wilcke
2015-04-01 12:38:29 +02:00
22 changed files with 1019 additions and 18 deletions

View File

@@ -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,