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
7157990f
Commit
7157990f
authored
Jun 06, 2013
by
Max Lv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update chn list
parent
efbd270e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
src/main/res/values/arrays.xml
src/main/res/values/arrays.xml
+2
-1
src/main/scala/com/github/shadowsocks/ShadowVpnService.scala
src/main/scala/com/github/shadowsocks/ShadowVpnService.scala
+4
-4
No files found.
src/main/res/values/arrays.xml
View file @
7157990f
...
@@ -696,6 +696,7 @@
...
@@ -696,6 +696,7 @@
<item>
198.211
</item>
<item>
198.211
</item>
<item>
198.244
</item>
<item>
198.244
</item>
<item>
199.15
</item>
<item>
199.15
</item>
<item>
199.16
</item>
<item>
199.27
</item>
<item>
199.27
</item>
<item>
199.34
</item>
<item>
199.34
</item>
<item>
199.47
</item>
<item>
199.47
</item>
...
@@ -923,4 +924,4 @@
...
@@ -923,4 +924,4 @@
<item>
222.239
</item>
<item>
222.239
</item>
<item>
223.27
</item>
<item>
223.27
</item>
</string-array>
</string-array>
</resources>
</resources>
\ No newline at end of file
src/main/scala/com/github/shadowsocks/ShadowVpnService.scala
View file @
7157990f
...
@@ -71,8 +71,8 @@ class ShadowVpnService extends VpnService {
...
@@ -71,8 +71,8 @@ class ShadowVpnService extends VpnService {
val
VPN_MTU
=
1500
val
VPN_MTU
=
1500
val
PRIVATE_VLAN_10
=
"10.254.254.%
d
"
val
PRIVATE_VLAN_10
=
"10.254.254.%
s
"
val
PRIVATE_VLAN_172
=
"172.30.254.%
d
"
val
PRIVATE_VLAN_172
=
"172.30.254.%
s
"
var
conn
:
ParcelFileDescriptor
=
null
var
conn
:
ParcelFileDescriptor
=
null
var
notificationManager
:
NotificationManager
=
null
var
notificationManager
:
NotificationManager
=
null
...
@@ -248,7 +248,7 @@ class ShadowVpnService extends VpnService {
...
@@ -248,7 +248,7 @@ class ShadowVpnService extends VpnService {
builder
builder
.
setSession
(
getString
(
R
.
string
.
app_name
))
.
setSession
(
getString
(
R
.
string
.
app_name
))
.
setMtu
(
VPN_MTU
)
.
setMtu
(
VPN_MTU
)
.
addAddress
(
localAddress
.
format
(
1
),
24
)
.
addAddress
(
localAddress
.
format
(
"1"
),
24
)
.
addDnsServer
(
"8.8.8.8"
)
.
addDnsServer
(
"8.8.8.8"
)
if
(
InetAddressUtils
.
isIPv6Address
(
config
.
proxy
))
{
if
(
InetAddressUtils
.
isIPv6Address
(
config
.
proxy
))
{
...
@@ -309,7 +309,7 @@ class ShadowVpnService extends VpnService {
...
@@ -309,7 +309,7 @@ class ShadowVpnService extends VpnService {
+
"--tunmtu %d "
+
"--tunmtu %d "
+
"--loglevel 3 "
+
"--loglevel 3 "
+
"--pid %stun2socks.pid"
)
+
"--pid %stun2socks.pid"
)
.
format
(
localAddress
.
format
(
2
),
localAddress
.
format
(
1
),
config
.
localPort
,
fd
,
VPN_MTU
,
BASE
)
.
format
(
localAddress
.
format
(
"2"
),
localAddress
.
format
(
"1"
),
config
.
localPort
,
fd
,
VPN_MTU
,
BASE
)
Log
.
d
(
TAG
,
cmd
)
Log
.
d
(
TAG
,
cmd
)
System
.
exec
(
cmd
)
System
.
exec
(
cmd
)
}
}
...
...
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