Azure / Azurite

A lightweight server clone of Azure Storage that simulates most of the commands supported by it with minimal dependencies
MIT License
1.83k stars 325 forks source link

Prints wrong listening url when --blobHost or --queueHost specified #433

Open jongio opened 4 years ago

jongio commented 4 years ago

Run this: azurite --oauth basic --cert cert.pfx --pwd azurite --blobHost localhost --queueHost localhost

Get this:

Azurite Blob service is starting at https://localhost:10000
Azurite Blob service is successfully listening at https://127.0.0.1:10000
Azurite Queue service is starting at https://localhost:10001
Azurite Queue service is successfully listening at https://127.0.0.1:10001

Should have localhost, not 127.0.0.1

XiaoningLiu commented 4 years ago

Hi @jongio, 127.0.0.1 is the actually binded host returned from httpServer.address() even we specific "localhost" when creating Node.js server.

There should no difference for following 2 commands

azurite --oauth basic --cert cert.pfx --pwd azurite --blobHost localhost --queueHost localhost
azurite --oauth basic --cert cert.pfx --pwd azurite
jongio commented 4 years ago

Sure. But it should print the host that the user specified so there no uncertainty.