cmd/storj-sim: support printing node url
Add support for node url-s with PEER_URL to help configuring authservice and gateway. storj-sim network env SATELLITE_0_URL Change-Id: I8b595b398007730662f100a4e6b3529cc0a7512a
This commit is contained in:
parent
e792727bea
commit
6a69c66477
@ -134,6 +134,9 @@ func (info *Info) Env() []string {
|
||||
if info.Address != "" {
|
||||
env = append(env, name+"_ADDR="+info.Address)
|
||||
}
|
||||
if info.ID != "" && info.Address != "" {
|
||||
env = append(env, name+"_URL="+info.ID+"@"+info.Address)
|
||||
}
|
||||
if info.Directory != "" {
|
||||
env = append(env, name+"_DIR="+info.Directory)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user