Skip to content

Commit e19a9c6

Browse files
committed
chore: add TODO
1 parent 271bb8d commit e19a9c6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/context.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,15 @@ export class GlobalContext {
2121

2222
// Sets the initial datagraph and viewgraph
2323
loadFromLocalStorage(this);
24+
2425
let maxIp = IpAddress.parse("10.0.0.0");
2526
this.datagraph.getDevices().forEach((device) => {
2627
const ip = IpAddress.parse(device.ip);
2728
if (maxIp.octets < ip.octets) {
2829
maxIp = ip;
2930
}
3031
});
32+
// TODO: we should use IpAddress instead of string here and in Datagraph
3133
const baseIp = maxIp.toString();
3234
const mask = "255.255.255.255";
3335
this.ipGenerator = new IpAddressGenerator(baseIp, mask);

0 commit comments

Comments
 (0)