@ikenxuan/amagi 1.4.6 → 1.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/server/listen.js +2 -2
- package/package.json +1 -1
package/lib/server/listen.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { logger } from '../model/index.js';
|
|
2
2
|
/** 启动监听 */
|
|
3
3
|
export const StartClient = async (client, options) => {
|
|
4
|
-
return client.listen({ port: options.port, host: '
|
|
4
|
+
return client.listen({ port: options.port, host: '[::]' }, (_err, _address) => {
|
|
5
5
|
if (_err)
|
|
6
6
|
logger.error(_err);
|
|
7
|
-
logger.info(`amagi server listening on
|
|
7
|
+
logger.info(`amagi server listening on http://localhost:${options.port}`);
|
|
8
8
|
});
|
|
9
9
|
};
|