Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
031906f7
Commit
031906f7
authored
4 years ago
by
Deucе
Browse files
Options
Downloads
Patches
Plain Diff
At least test that it compiles.
Sheesh.
parent
0577058b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
exec/load/dns.js
+7
-7
7 additions, 7 deletions
exec/load/dns.js
with
7 additions
and
7 deletions
exec/load/dns.js
+
7
−
7
View file @
031906f7
...
@@ -167,19 +167,19 @@ function DNS(servers) {
...
@@ -167,19 +167,19 @@ function DNS(servers) {
).
replace
(
/
(
0000:
)
+/
,
'
:
'
).
replace
(
/
(
^|:
)
0
{1,3}
/g
,
'
$1
'
);
).
replace
(
/
(
0000:
)
+/
,
'
:
'
).
replace
(
/
(
^|:
)
0
{1,3}
/g
,
'
$1
'
);
case
33
:
// SRV
case
33
:
// SRV
tmp
=
{};
tmp
=
{};
tmp
.
priority
=
string_to_int16
(
resp
.
substr
(
offset
,
2
);
tmp
.
priority
=
string_to_int16
(
resp
.
substr
(
offset
,
2
)
)
;
offset
+=
2
;
offset
+=
2
;
tmp
.
weight
=
string_to_int16
(
resp
.
substr
(
offset
,
2
);
tmp
.
weight
=
string_to_int16
(
resp
.
substr
(
offset
,
2
)
)
;
offset
+=
2
;
offset
+=
2
;
tmp
.
port
=
string_to_int16
(
resp
.
substr
(
offset
,
2
);
tmp
.
port
=
string_to_int16
(
resp
.
substr
(
offset
,
2
)
)
;
offset
+=
2
;
offset
+=
2
;
tmp
.
target
=
get_name
(
resp
,
offset
).
name
;
tmp
.
target
=
get_name
(
resp
,
offset
).
name
;
return
tmp
;
return
tmp
;
case
35
:
// NAPTR
case
35
:
// NAPTR
tmp
=
{};
tmp
=
{};
tmp
.
order
=
string_to_int16
(
resp
.
substr
(
offset
,
2
);
tmp
.
order
=
string_to_int16
(
resp
.
substr
(
offset
,
2
)
)
;
offset
+=
2
;
offset
+=
2
;
tmp
.
preference
=
string_to_int16
(
resp
.
substr
(
offset
,
2
);
tmp
.
preference
=
string_to_int16
(
resp
.
substr
(
offset
,
2
)
)
;
offset
+=
2
;
offset
+=
2
;
tmp2
=
get_string
(
resp
,
offset
);
tmp2
=
get_string
(
resp
,
offset
);
tmp
.
flags
=
tmp2
.
string
;
tmp
.
flags
=
tmp2
.
string
;
...
@@ -194,9 +194,9 @@ function DNS(servers) {
...
@@ -194,9 +194,9 @@ function DNS(servers) {
return
tmp
;
return
tmp
;
case
256
:
// URI
case
256
:
// URI
tmp
=
{};
tmp
=
{};
tmp
.
priority
=
string_to_int16
(
resp
.
substr
(
offset
,
2
);
tmp
.
priority
=
string_to_int16
(
resp
.
substr
(
offset
,
2
)
)
;
offset
+=
2
;
offset
+=
2
;
tmp
.
weight
=
string_to_int16
(
resp
.
substr
(
offset
,
2
);
tmp
.
weight
=
string_to_int16
(
resp
.
substr
(
offset
,
2
)
)
;
offset
+=
2
;
offset
+=
2
;
tmp
.
target
=
get_string
(
resp
,
offset
).
string
;
tmp
.
target
=
get_string
(
resp
,
offset
).
string
;
tmp
.
target
=
tmp
.
target
.
replace
(
/
\\
"/g
,
'
"
'
);
tmp
.
target
=
tmp
.
target
.
replace
(
/
\\
"/g
,
'
"
'
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment