mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-04-01 21:13:11 +00:00
feat: Utils to do bindLan and have ipv4 and ipv6 if need be
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user