mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
open ui addr link
This commit is contained in:
committed by
Matt Hill
parent
45dfe2d562
commit
68ff787b99
@@ -75,21 +75,11 @@ export function hasLanUi (interfaces: { [id: string]: InterfaceDef }): boolean {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function torUiAddress (pkg: PackageDataEntry): string {
|
export function torUiAddress (pkg: PackageDataEntry): string {
|
||||||
const interfaces = pkg.manifest.interfaces
|
return pkg.installed?.['interface-addresses']?.ui?.['tor-address']
|
||||||
const id = Object.keys(interfaces).find(key => {
|
|
||||||
const val = interfaces[key]
|
|
||||||
return val.ui && val['tor-config']
|
|
||||||
})
|
|
||||||
return pkg.installed['interface-info'].addresses[id]['tor-address']
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export function lanUiAddress (pkg: PackageDataEntry): string {
|
export function lanUiAddress (pkg: PackageDataEntry): string {
|
||||||
const interfaces = pkg.manifest.interfaces
|
return pkg.installed?.['interface-addresses']?.ui?.['lan-address']
|
||||||
const id = Object.keys(interfaces).find(key => {
|
|
||||||
const val = interfaces[key]
|
|
||||||
return val.ui && val['lan-config']
|
|
||||||
})
|
|
||||||
return pkg.installed['interface-info'].addresses[id]['lan-address']
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export function hasUi (interfaces: { [id: string]: InterfaceDef }): boolean {
|
export function hasUi (interfaces: { [id: string]: InterfaceDef }): boolean {
|
||||||
|
|||||||
Reference in New Issue
Block a user