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

update chn list

parent efbd270e
......@@ -696,6 +696,7 @@
<item>198.211</item>
<item>198.244</item>
<item>199.15</item>
<item>199.16</item>
<item>199.27</item>
<item>199.34</item>
<item>199.47</item>
......
......@@ -71,8 +71,8 @@ class ShadowVpnService extends VpnService {
val VPN_MTU = 1500
val PRIVATE_VLAN_10 = "10.254.254.%d"
val PRIVATE_VLAN_172 = "172.30.254.%d"
val PRIVATE_VLAN_10 = "10.254.254.%s"
val PRIVATE_VLAN_172 = "172.30.254.%s"
var conn: ParcelFileDescriptor = null
var notificationManager: NotificationManager = null
......@@ -248,7 +248,7 @@ class ShadowVpnService extends VpnService {
builder
.setSession(getString(R.string.app_name))
.setMtu(VPN_MTU)
.addAddress(localAddress.format(1), 24)
.addAddress(localAddress.format("1"), 24)
.addDnsServer("8.8.8.8")
if (InetAddressUtils.isIPv6Address(config.proxy)) {
......@@ -309,7 +309,7 @@ class ShadowVpnService extends VpnService {
+ "--tunmtu %d "
+ "--loglevel 3 "
+ "--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)
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