Skip to content

Commit 2bd7696

Browse files
authored
improve docs - Apply suggestions from code review
1 parent 4bb266b commit 2bd7696

File tree

1 file changed

+2
-2
lines changed
  • components/webui/server/src/plugins/MongoSocketIoServer

1 file changed

+2
-2
lines changed

components/webui/server/src/plugins/MongoSocketIoServer/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ class MongoSocketIoServer {
9696
): Promise<MongoSocketIoServer> {
9797
const mongoDb = await initializeMongoClient(options);
9898

99-
// Fastify listens on all resolved addresses for localhost (e.g. `127.0.0.1`, `::1`), but
100-
// socket.io only uses the main one. When multiple addresses are resolved, we proxy
99+
// Fastify listens on all resolved addresses for localhost (e.g. `::1` and `127.0.0.1`), but
100+
// socket.io can only intercept requests on the main server which listens only on the primary address. When multiple addresses are resolved, we proxy
101101
// socket.io requests from secondary addresses to the main server.
102102
try {
103103
const addresses = await dnsLookup(fastify.config.HOST, {all: true});

0 commit comments

Comments
 (0)