Skip to content

Commit 0106ea7

Browse files
committed
formatting
1 parent a51eeb0 commit 0106ea7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/backend/src/nest/qss/qss.service.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,11 @@ export class QSSService extends EventEmitter implements OnModuleDestroy, OnModul
452452
// Normalize local-ish hostnames (loopback, LAN IPs) to 'localhost' so the
453453
// client matches the QSS server's default QSS_HOSTNAME in the sigchain.
454454
let host = url.parse(this._qssEndpoint).hostname!
455-
if (/^(127\.\d+\.\d+\.\d+|10\.\d+\.\d+\.\d+|192\.168\.\d+\.\d+|172\.(1[6-9]|2\d|3[01])\.\d+\.\d+|localhost)$/.test(host)) {
455+
if (
456+
/^(127\.\d+\.\d+\.\d+|10\.\d+\.\d+\.\d+|192\.168\.\d+\.\d+|172\.(1[6-9]|2\d|3[01])\.\d+\.\d+|localhost)$/.test(
457+
host
458+
)
459+
) {
456460
host = 'localhost'
457461
}
458462

0 commit comments

Comments
 (0)