chore: Add something

This commit is contained in:
BluJ
2023-04-14 09:16:59 -06:00
parent 556b1b03f1
commit df6f0c6efb
7 changed files with 30 additions and 16 deletions

View File

@@ -1,11 +1,11 @@
import { Origin } from "./Origin";
export class LocalBinding {
constructor(readonly localAddress: string, readonly ipAddress: string) {}
constructor(readonly localHost: string, readonly ipHost: string) {}
createOrigins(protocol: string) {
return {
local: new Origin(protocol, this.localAddress),
ip: new Origin(protocol, this.ipAddress),
local: new Origin(protocol, this.localHost),
ip: new Origin(protocol, this.ipHost),
};
}
}