Fix #992: Ensure the gateway variable is set on the run --init command

This commit is contained in:
Hector Sanjuan 2019-12-23 23:32:06 +01:00
parent 09e4007c31
commit f20a524bbc

View File

@ -248,6 +248,13 @@ The peer will stay running in the foreground until manually stopped.
Name: "init",
Usage: "initialize cluster peer with the given URL before running",
},
&cli.StringFlag{
Name: "gateway",
Value: DefaultGateway,
Usage: "gateway URL",
EnvVars: []string{"IPFS_GATEWAY"},
Hidden: true,
},
},
},
{