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:
Egon Elbre 2021-11-03 16:09:26 +02:00
parent e792727bea
commit 6a69c66477

View File

@ -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)
}