mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-30 12:21:57 +00:00
feat: Utils to do bindLan and have ipv4 and ipv6 if need be
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { containsAddress } from "../health/checkFns/checkPortListening";
|
||||
import { containsAddress } from "../health/checkFns/checkPortListening"
|
||||
|
||||
describe("Health ready check", () => {
|
||||
it("Should be able to parse an example information", () => {
|
||||
@@ -9,9 +9,9 @@ describe("Health ready check", () => {
|
||||
1: 00000000:0050 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 0 21634477 1 0000000000000000 100 0 0 10 0
|
||||
2: 0B00007F:9671 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 0 21635458 1 0000000000000000 100 0 0 10 0
|
||||
3: 00000000:0D73 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 0 21634479 1 0000000000000000 100 0 0 10 0
|
||||
`;
|
||||
`
|
||||
|
||||
expect(containsAddress(input, 80)).toBe(true);
|
||||
expect(containsAddress(input, 1234)).toBe(false);
|
||||
});
|
||||
});
|
||||
expect(containsAddress(input, 80)).toBe(true)
|
||||
expect(containsAddress(input, 1234)).toBe(false)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user