mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-15 12:13:59 +00:00
fix: align dashboard host warnings with effective bind
This commit is contained in:
1 parent
553f8ac1e5
commit
dcc67477ec
13 files changed
+385
-47
No files matched your search
@@ -18,6 +18,14 @@ afterEach(async () => {
|
||||
});
|
||||
|
||||
describe('startServer host binding', () => {
|
||||
it('binds with system-default host when no host is provided', async () => {
|
||||
const instance = await startServer({ port: 0 });
|
||||
instances.push(instance);
|
||||
|
||||
const address = instance.server.address() as AddressInfo;
|
||||
expect(address.port).toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it('binds to an explicit loopback host', async () => {
|
||||
const instance = await startServer({ port: 0, host: '127.0.0.1' });
|
||||
instances.push(instance);
|
||||
|
||||
Reference in new issue
Block a user