mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 04:01:58 +00:00
open ui addr link
This commit is contained in:
committed by
Aiden McClelland
parent
e7a594b48d
commit
3fa84eb65f
@@ -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