mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-08 23:25:51 +01:00
chore: emit warning if is using multiple addresses
This commit is contained in:
parent
81d95ef425
commit
80d669e6eb
@ -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 New Issue
Block a user