Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
Web Frontend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TelcoDB
Web Frontend
Commits
f9ae99a4
Verified
Commit
f9ae99a4
authored
Mar 10, 2020
by
Elias Ojala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve SPF parser on RFC7208
parent
fe463f0b
Pipeline
#74
passed with stage
in 5 minutes and 15 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
src/view-functions/txtParser.ts
src/view-functions/txtParser.ts
+2
-1
views/docs/index.twig
views/docs/index.twig
+2
-0
views/home/about.twig
views/home/about.twig
+6
-1
No files found.
src/view-functions/txtParser.ts
View file @
f9ae99a4
...
...
@@ -5,7 +5,8 @@ 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|ptr
)\:([^\s]
+
)
/g
,
'
$1:<a href="/search?q=$2">$2</a>
'
);
// https://tools.ietf.org/html/rfc7208#section-5
record
=
record
.
replace
(
/
(
a|mx|ptr|ip4|ip6|include
)\:([^\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/docs/index.twig
View file @
f9ae99a4
...
...
@@ -86,6 +86,7 @@ location: <a href="https://peeringdb.com/api/net/291" class="text-dark">https://
<li><a
href=
"/docs/speedtest-servers-json/"
>
List of Speedtest.net servers in JSON
</a></li>
</ul>
{#
<h2>DNS-over-HTTPS</h2>
<ul>
...
...
@@ -94,4 +95,5 @@ location: <a href="https://peeringdb.com/api/net/291" class="text-dark">https://
</ul>
<p>See our DNS resolver's privacy policy <a href="https://lelux.fi/resolver/#privacy-policy">here</a>.</p>
#}
{%
endblock
%}
\ No newline at end of file
views/home/about.twig
View file @
f9ae99a4
...
...
@@ -39,7 +39,12 @@
</p>
<a
name=
"contact"
></a><h3>
Contact
</h3>
<a
name=
"source-code"
></a><h2>
Source code
</h2>
<p>
Source code of TelcoDB is available at
<a
href=
"https://gitlab.lelux.fi/TelcoDB"
>
our GitLab
</a>
.
</p>
<a
name=
"contact"
></a><h2>
Contact
</h2>
<p>
Our contact address is
<a
href=
"mailto:contact+2019@telcodb.net"
>
contact@telcodb.net
</a>
.
</p>
...
...
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