mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
fix showing dns records
This commit is contained in:
@@ -123,7 +123,7 @@ export class DnsComponent {
|
||||
]
|
||||
}
|
||||
|
||||
const segments = subdomain.split('.')
|
||||
const segments = subdomain.split('.').slice(1)
|
||||
|
||||
const subdomains = this.i18n.transform('subdomains of')
|
||||
|
||||
@@ -133,7 +133,7 @@ export class DnsComponent {
|
||||
purpose: `only ${subdomain}`,
|
||||
},
|
||||
...segments.map((_, i) => {
|
||||
const parent = segments.slice(i + 1).join('.')
|
||||
const parent = segments.slice(i).join('.')
|
||||
return {
|
||||
host: `*.${parent}`,
|
||||
purpose: `${subdomains} ${parent}`,
|
||||
|
||||
@@ -157,7 +157,7 @@ export class PublicDomainService {
|
||||
gatewayId: string,
|
||||
authority: 'local' | string,
|
||||
) {
|
||||
const gateway = this.data()!.gateways.find(g => (g.id = gatewayId))!
|
||||
const gateway = this.data()!.gateways.find(g => g.id === gatewayId)!
|
||||
|
||||
const loader = this.loader.open('Saving').subscribe()
|
||||
const params = {
|
||||
@@ -178,6 +178,7 @@ export class PublicDomainService {
|
||||
}
|
||||
|
||||
const wanIp = gateway.ipInfo.wanIp
|
||||
|
||||
let message = this.i18n.transform(
|
||||
'Create one of the DNS records below.',
|
||||
) as i18nKey
|
||||
|
||||
Reference in New Issue
Block a user