From 6804362b9a15e76fe0355706a6286d4cf4460f7e Mon Sep 17 00:00:00 2001 From: vadym Date: Wed, 10 Jun 2020 00:57:38 -0700 Subject: [PATCH] 1. added more peers --- .../yggdrasil/YggdrasilTunService.kt | 22 ++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/io/github/chronosx88/yggdrasil/YggdrasilTunService.kt b/app/src/main/java/io/github/chronosx88/yggdrasil/YggdrasilTunService.kt index 5b9c6c1..30c0b00 100644 --- a/app/src/main/java/io/github/chronosx88/yggdrasil/YggdrasilTunService.kt +++ b/app/src/main/java/io/github/chronosx88/yggdrasil/YggdrasilTunService.kt @@ -76,12 +76,28 @@ class YggdrasilTunService : VpnService() { private fun fixConfig(config: MutableMap): MutableMap { val peers = arrayListOf(); - peers.add("tcp://194.177.21.156:5066"); + peers.add("tcp://194.177.21.156:5066") + peers.add("tcp://46.151.26.194:60575") + peers.add("tcp://188.226.125.64:54321") + val whiteList = arrayListOf() + whiteList.add("") + val blackList = arrayListOf() + blackList.add("") config["Peers"] = peers config["Listen"] = "" config["AdminListen"] = "tcp://localhost:9001" - config["IfName"] = "dummy" - (config["SessionFirewall"] as MutableMap)["Enable"] = true + config["IfName"] = "auto" + config["EncryptionPublicKey"] = "b15633cf66e63a04f03e9d1a5b2ac6411af819cde9e74175cf574d5599b1296c" + config["EncryptionPrivateKey"] = "a39e2da3ccbb5afc3854574a2e3823e881d2d720754d6fdc877f57b252d3b521" + config["SigningPublicKey"] = "4f248483c094aea370fba86f1630ba5099cb230aa1337ab6ef6ff0b132be2c2b" + config["SigningPrivateKey"] = "e4d56eb2e15e25d9098731e39d661a80c523f31d38b71cbd0ad25a5cde745eac4f248483c094aea370fba86f1630ba5099cb230aa1337ab6ef6ff0b132be2c2b" + (config["SessionFirewall"] as MutableMap)["Enable"] = false + (config["SessionFirewall"] as MutableMap)["AllowFromDirect"] = true + (config["SessionFirewall"] as MutableMap)["AllowFromRemote"] = true + (config["SessionFirewall"] as MutableMap)["AlwaysAllowOutbound"] = true + (config["SessionFirewall"] as MutableMap)["WhitelistEncryptionPublicKeys"] = whiteList + (config["SessionFirewall"] as MutableMap)["BlacklistEncryptionPublicKeys"] = blackList + (config["SwitchOptions"] as MutableMap)["MaxTotalQueueSize"] = 1048576 if (config["AutoStart"] == null) { val tmpMap = emptyMap().toMutableMap()