Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
nextgen-router
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
nextgen-router
Commits
bc8d6c7d
Commit
bc8d6c7d
authored
Aug 29, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
60c3c125
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
files/dnsmasq/smartdns.conf.j2
files/dnsmasq/smartdns.conf.j2
+5
-5
prepare.sh
prepare.sh
+1
-1
No files found.
files/dnsmasq/smartdns.conf.j2
View file @
bc8d6c7d
...
@@ -27,35 +27,35 @@ dualstack-ip-selection yes
...
@@ -27,35 +27,35 @@ dualstack-ip-selection yes
{% if smartdns.udp_dns is defined and smartdns.udp_dns %}
{% if smartdns.udp_dns is defined and smartdns.udp_dns %}
# UDP DNSes
# UDP DNSes
{% for dns in smartdns.udp_dns %}
{% for dns in smartdns.udp_dns %}
server {{dns}} -group ov
s
ersea
server {{dns}} -group oversea
{% endfor %}
{% endfor %}
{% endif %}
{% endif %}
{% if smartdns.tcp_dns is defined and smartdns.tcp_dns %}
{% if smartdns.tcp_dns is defined and smartdns.tcp_dns %}
# TCP DNSes
# TCP DNSes
{% for dns in smartdns.tcp_dns %}
{% for dns in smartdns.tcp_dns %}
server-tcp {{dns}} -group ov
s
ersea
server-tcp {{dns}} -group oversea
{% endfor %}
{% endfor %}
{% endif %}
{% endif %}
{% if smartdns.tls_dns is defined and smartdns.tls_dns %}
{% if smartdns.tls_dns is defined and smartdns.tls_dns %}
# TLS DNSes
# TLS DNSes
{% for dns in smartdns.tls_dns %}
{% for dns in smartdns.tls_dns %}
server-tls {{dns}} -group ov
s
ersea
server-tls {{dns}} -group oversea
{% endfor %}
{% endfor %}
{% endif %}
{% endif %}
{% if smartdns.https_dns is defined and smartdns.https_dns %}
{% if smartdns.https_dns is defined and smartdns.https_dns %}
# HTTPS DNSes
# HTTPS DNSes
{% for dns in smartdns.https_dns %}
{% for dns in smartdns.https_dns %}
server-https https://{{dns}}/dns-query -group ov
s
ersea
server-https https://{{dns}}/dns-query -group oversea
{% endfor %}
{% endfor %}
{% endif %}
{% endif %}
{% if smartdns.trusted_dns is defined and smartdns.trusted_dns %}
{% if smartdns.trusted_dns is defined and smartdns.trusted_dns %}
# Trusted DNSes
# Trusted DNSes
{% for dns in smartdns.trusted_dns %}
{% for dns in smartdns.trusted_dns %}
server {{dns}} -group ov
s
ersea
server {{dns}} -group oversea
{% endfor %}
{% endfor %}
{% endif %}
{% endif %}
...
...
prepare.sh
View file @
bc8d6c7d
...
@@ -5,7 +5,7 @@ download_repo() {
...
@@ -5,7 +5,7 @@ download_repo() {
REPO_URL
=
$2
REPO_URL
=
$2
echo
"Downloading
$REPO_DIR
"
echo
"Downloading
$REPO_DIR
"
if
[
-d
"
$REPO_DIR
"
]
;
then
if
[
-d
"
$REPO_DIR
"
]
;
then
(
cd
"
$REPO_DIR
"
&&
git
pull
--depth
1
)
(
cd
"
$REPO_DIR
"
&&
git
fetch origin
&&
git reset
--hard
FETCH_HEAD
)
else
else
git clone
--depth
1
"
$REPO_URL
"
"
$REPO_DIR
"
git clone
--depth
1
"
$REPO_URL
"
"
$REPO_DIR
"
fi
fi
...
...
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