Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
com.ccwangluo.accelerator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
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
sheteng
com.ccwangluo.accelerator
Commits
7297a266
Commit
7297a266
authored
Jan 16, 2018
by
Max Lv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid problematic local DNS resolver
parent
195e2afb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
7 deletions
+1
-7
core/src/overture/src/github.com/shadowsocks/overture
core/src/overture/src/github.com/shadowsocks/overture
+1
-1
mobile/src/main/java/com/github/shadowsocks/bg/LocalDnsService.kt
...rc/main/java/com/github/shadowsocks/bg/LocalDnsService.kt
+0
-6
No files found.
overture
@
466f9902
Subproject commit 4
45ca9003efff4b853ea8ebf49d7c0854ebb31b0
Subproject commit 4
66f9902c9779b8801f521f88db1d1522c880c26
mobile/src/main/java/com/github/shadowsocks/bg/LocalDnsService.kt
View file @
7297a266
...
...
@@ -79,12 +79,6 @@ object LocalDnsService {
makeDns
(
"Primary-2"
,
"114.114.114.114"
,
false
)
))
this
as
Context
try
{
val
localLinkDns
=
Dns
.
getDnsResolver
(
this
)
localDns
.
put
(
makeDns
(
"Primary-3"
,
localLinkDns
,
false
))
}
catch
(
_
:
Exception
)
{
}
// ignore
when
(
profile
.
route
)
{
Acl
.
BYPASS_CHN
,
Acl
.
BYPASS_LAN_CHN
,
Acl
.
GFWLIST
,
Acl
.
CUSTOM_RULES
->
config
.
put
(
"PrimaryDNS"
,
localDns
)
...
...
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