feat: Utils to do bindLan and have ipv4 and ipv6 if need be

This commit is contained in:
BluJ
2023-04-27 11:22:42 -06:00
parent 353692bf55
commit c7d38fc7ce
79 changed files with 1754 additions and 1744 deletions

View File

@@ -1,17 +1,14 @@
import { Effects } from "../types";
import { LocalPort } from "./LocalPort";
import { TorHostname } from "./TorHostname";
import { Effects } from "../types"
import { LocalPort } from "./LocalPort"
import { TorHostname } from "./TorHostname"
export class NetworkBuilder {
static of(effects: Effects) {
return new NetworkBuilder(effects);
return new NetworkBuilder(effects)
}
private constructor(private effects: Effects) {}
getTorHostName(id: string) {
return new TorHostname(this.effects, id);
}
getPort(id: string) {
return new LocalPort(this.effects, id);
return new TorHostname(this.effects, id)
}
}