Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
TelcoDB
Web Frontend
Commits
8ec31e34
Verified
Commit
8ec31e34
authored
Nov 08, 2019
by
Elias Ojala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Parse ptr: in SPF
parent
8f092616
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
src/view-functions/txtParser.ts
src/view-functions/txtParser.ts
+1
-1
views/home/about.twig
views/home/about.twig
+1
-2
No files found.
src/view-functions/txtParser.ts
View file @
8ec31e34
...
...
@@ -5,7 +5,7 @@ function txtParser(record: string): string {
* See https://telcodb.net/dns/amazon.com for example.
*/
if
(
record
.
includes
(
"
v=spf1
"
)
||
record
.
includes
(
"
spf2.0/pra
"
))
{
record
=
record
.
replace
(
/
(
include|ip4|ip6|a
)\:([^\s]
+
)
/g
,
'
$1:<a href="/search?q=$2">$2</a>
'
);
record
=
record
.
replace
(
/
(
include|ip4|ip6|a
|ptr
)\:([^\s]
+
)
/g
,
'
$1:<a href="/search?q=$2">$2</a>
'
);
record
=
record
.
replace
(
/
(
redirect
)\=([^\s]
+
)
/g
,
'
$1=<a href="/search?q=$2">$2</a>
'
);
...
...
views/home/about.twig
View file @
8ec31e34
...
...
@@ -9,7 +9,7 @@
<p>
We use the following data sources:
<h3>
ASN data
</h3>
<h3>
ASN
&
announcement
data
</h3>
<ul>
<li><a
href=
"https://asrank.caida.org/"
>
CAIDA ASRank
</a></li>
<li><a
href=
"https://peeringdb.com/"
>
PeeringDB
</a></li>
...
...
@@ -36,6 +36,5 @@
<p>
Our contact address is
<a
href=
"mailto:contact+2019@telcodb.net"
>
contact@telcodb.net
</a>
.
</p>
{%
endblock
%}
\ No newline at end of file
Write
Preview
Markdown
is supported
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