mirror of
https://github.com/whyour/qinglong.git
synced 2026-08-11 19:05:20 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bc92ba47f6 | ||
|
|
dfb70abbe3 |
@@ -25,7 +25,7 @@ export class GrpcServerService {
|
|||||||
const grpcPort = config.grpcPort;
|
const grpcPort = config.grpcPort;
|
||||||
const bindAsync = promisify(this.server.bindAsync).bind(this.server);
|
const bindAsync = promisify(this.server.bindAsync).bind(this.server);
|
||||||
await bindAsync(
|
await bindAsync(
|
||||||
`0.0.0.0:${grpcPort}`,
|
`[::]:${grpcPort}`,
|
||||||
ServerCredentials.createInsecure(),
|
ServerCredentials.createInsecure(),
|
||||||
);
|
);
|
||||||
Logger.debug(`✌️ gRPC service started successfully`);
|
Logger.debug(`✌️ gRPC service started successfully`);
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ export class HttpServerService {
|
|||||||
async initialize(expressApp: express.Application, port: number) {
|
async initialize(expressApp: express.Application, port: number) {
|
||||||
try {
|
try {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
this.server = expressApp.listen(port, '0.0.0.0', () => {
|
this.server = expressApp.listen(port, '::', () => {
|
||||||
Logger.debug(`✌️ HTTP service started successfully`);
|
Logger.debug(`✌️ HTTP service started successfully`);
|
||||||
metricsService.record('http_service_start', 1, {
|
metricsService.record('http_service_start', 1, {
|
||||||
port: port.toString(),
|
port: port.toString(),
|
||||||
|
|||||||
Reference in New Issue
Block a user