mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-30 12:21:57 +00:00
feat: Utils to do bindLan and have ipv4 and ipv6 if need be
This commit is contained in:
@@ -4,8 +4,8 @@ export class Origin {
|
||||
withAuth(
|
||||
origin?:
|
||||
| {
|
||||
password: string;
|
||||
username: string;
|
||||
password: string
|
||||
username: string
|
||||
}
|
||||
| null
|
||||
| undefined,
|
||||
@@ -13,6 +13,6 @@ export class Origin {
|
||||
// prettier-ignore
|
||||
const urlAuth = !!(origin) ? `${origin.username}:${origin.password}@` :
|
||||
'';
|
||||
return `${this.protocol}://${urlAuth}${this.host}`;
|
||||
return `${this.protocol}://${urlAuth}${this.host}`
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user