Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
scc-net
netvs
netvs-core
Commits
09f0b2f8
Commit
09f0b2f8
authored
Nov 12, 2020
by
janis.streib
🦉
Browse files
UPD: removed prefill for A-records (closes
#195
)
parent
9c7d5f54
Pipeline
#117862
failed with stages
in 5 minutes and 49 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
frontend/src/views/dnsvs/BCDRecords.vue
View file @
09f0b2f8
...
...
@@ -467,27 +467,7 @@ export default {
target_is_singleton
:
recobj
.
target_is_singleton_dflt
,
target_is_reverse_unique
:
recobj
.
target_is_reverse_unique_dflt
}
if
(
record_type
===
'
A
'
)
{
let
sub
=
null
let
multi
=
false
this
.
subnets
.
forEach
((
item
)
=>
{
if
(
item
.
type
===
'
4
'
)
{
if
(
sub
!==
null
)
{
multi
=
true
}
sub
=
item
}
if
(
sub
!==
null
&&
!
multi
)
{
const
first
=
ipaddress
.
ip_net_get_first
(
sub
.
cidr
)
const
last
=
ipaddress
.
ip_net_get_last
(
sub
.
cidr
)
let
index
=
0
while
(
first
.
slice
(
0
,
index
)
===
last
.
slice
(
0
,
index
))
{
index
++
}
this
.
db_editor_presets
.
data
=
first
.
slice
(
0
,
index
)
}
})
}
else
if
(
record_type
===
'
AAAA
'
)
{
if
(
record_type
===
'
AAAA
'
)
{
let
sub
=
null
let
multi
=
false
this
.
subnets
.
forEach
((
item
)
=>
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment