mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 18:31:54 +00:00
12 lines
304 B
TypeScript
12 lines
304 B
TypeScript
import { Origin } from "./Origin";
|
|
|
|
export class LocalBinding {
|
|
constructor(readonly localAddress: string, readonly ipAddress: string) {}
|
|
createOrigins(protocol: string) {
|
|
return {
|
|
local: new Origin(protocol, this.localAddress),
|
|
ip: new Origin(protocol, this.ipAddress),
|
|
};
|
|
}
|
|
}
|