0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00

chore: emit warning if is using multiple addresses

This commit is contained in:
Juan Picado 2021-04-04 08:21:32 +02:00
parent 81d95ef425
commit 80d669e6eb

View file

@ -35,6 +35,7 @@ export function getListListenAddresses(argListen: string, configListen: any): an
addresses = [argListen];
} else if (Array.isArray(configListen)) {
addresses = configListen;
process.emitWarning('multiple addresses will be deprecated in the next major, only use one');
} else if (configListen) {
addresses = [configListen];
} else {