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:
parent
81d95ef425
commit
80d669e6eb
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue