mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
show correct gateway name when adding public domain
This commit is contained in:
@@ -237,14 +237,14 @@ export class PublicDomainService {
|
||||
values: data.gateways.reduce<Record<string, string>>(
|
||||
(obj, gateway) => ({
|
||||
...obj,
|
||||
[gateway.id]: gateway.ipInfo!.name,
|
||||
[gateway.id]: gateway.name || gateway.ipInfo!.name,
|
||||
}),
|
||||
{},
|
||||
),
|
||||
default: '',
|
||||
disabled: data.gateways
|
||||
.filter(
|
||||
g => !g.ipInfo?.wanIp || utils.CGNAT.contains(g.ipInfo?.wanIp),
|
||||
g => !g.ipInfo!.wanIp || utils.CGNAT.contains(g.ipInfo!.wanIp),
|
||||
)
|
||||
.map(g => g.id),
|
||||
})),
|
||||
|
||||
Reference in New Issue
Block a user