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
b88f8366
Commit
b88f8366
authored
Dec 13, 2017
by
Max Lv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refine #1489
parent
c3bbd09e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
18 deletions
+2
-18
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/BaseService.kt
...le/src/main/java/com/github/shadowsocks/bg/BaseService.kt
+0
-16
mobile/src/main/java/com/github/shadowsocks/bg/LocalDnsService.kt
...rc/main/java/com/github/shadowsocks/bg/LocalDnsService.kt
+1
-1
No files found.
overture
@
6904e8d4
Subproject commit
c8ec480cf716be70bc3cae2c4cd7f2733901ab09
Subproject commit
6904e8d435ddfb9424b3ed1995208318434f1ae3
mobile/src/main/java/com/github/shadowsocks/bg/BaseService.kt
View file @
b88f8366
...
@@ -238,22 +238,6 @@ object BaseService {
...
@@ -238,22 +238,6 @@ object BaseService {
Acl
.
getFile
(
if
(
route
==
Acl
.
CUSTOM_RULES
)
Acl
.
CUSTOM_RULES_FLATTENED
else
route
)
Acl
.
getFile
(
if
(
route
==
Acl
.
CUSTOM_RULES
)
Acl
.
CUSTOM_RULES_FLATTENED
else
route
)
}
}
fun
getListFile
():
File
?
{
val
aclFile
=
getAclFile
()
?:
return
null
val
listFile
=
File
(
aclFile
.
absolutePath
+
".lst"
)
val
list
=
StringBuilder
()
aclFile
.
bufferedReader
().
useLines
{
for
(
line
in
it
)
{
if
(
line
.
startsWith
(
"^(.*\\.)?"
))
{
list
.
append
(
line
.
substring
(
8
).
replace
(
"\\"
,
""
).
replace
(
"$"
,
""
))
list
.
append
(
"\n"
)
}
}
}
listFile
.
bufferedWriter
().
use
{
it
.
write
(
list
.
toString
())
}
return
listFile
}
fun
createNotification
():
ServiceNotification
fun
createNotification
():
ServiceNotification
fun
startRunner
()
{
fun
startRunner
()
{
...
...
mobile/src/main/java/com/github/shadowsocks/bg/LocalDnsService.kt
View file @
b88f8366
...
@@ -89,7 +89,7 @@ object LocalDnsService {
...
@@ -89,7 +89,7 @@ object LocalDnsService {
.
put
(
"PrimaryDNS"
,
localDns
)
.
put
(
"PrimaryDNS"
,
localDns
)
.
put
(
"AlternativeDNS"
,
remoteDns
)
.
put
(
"AlternativeDNS"
,
remoteDns
)
.
put
(
"IPNetworkFile"
,
"china_ip_list.txt"
)
.
put
(
"IPNetworkFile"
,
"china_ip_list.txt"
)
.
put
(
"DomainFile"
,
get
List
File
()
!!
.
absolutePath
)
.
put
(
"DomainFile"
,
get
Acl
File
()
!!
.
absolutePath
)
Acl
.
CHINALIST
->
config
Acl
.
CHINALIST
->
config
.
put
(
"PrimaryDNS"
,
localDns
)
.
put
(
"PrimaryDNS"
,
localDns
)
.
put
(
"AlternativeDNS"
,
remoteDns
)
.
put
(
"AlternativeDNS"
,
remoteDns
)
...
...
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