Commit 7157990f authored by Max Lv's avatar Max Lv

update chn list

parent efbd270e
...@@ -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
...@@ -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)
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment