mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-06 22:40:26 -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];
|
addresses = [argListen];
|
||||||
} else if (Array.isArray(configListen)) {
|
} else if (Array.isArray(configListen)) {
|
||||||
addresses = configListen;
|
addresses = configListen;
|
||||||
|
process.emitWarning('multiple addresses will be deprecated in the next major, only use one');
|
||||||
} else if (configListen) {
|
} else if (configListen) {
|
||||||
addresses = [configListen];
|
addresses = [configListen];
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue