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 30c0b00..240375c 100644 --- a/app/src/main/java/io/github/chronosx88/yggdrasil/YggdrasilTunService.kt +++ b/app/src/main/java/io/github/chronosx88/yggdrasil/YggdrasilTunService.kt @@ -86,17 +86,17 @@ class YggdrasilTunService : VpnService() { config["Peers"] = peers config["Listen"] = "" config["AdminListen"] = "tcp://localhost:9001" - config["IfName"] = "auto" - config["EncryptionPublicKey"] = "b15633cf66e63a04f03e9d1a5b2ac6411af819cde9e74175cf574d5599b1296c" - config["EncryptionPrivateKey"] = "a39e2da3ccbb5afc3854574a2e3823e881d2d720754d6fdc877f57b252d3b521" - config["SigningPublicKey"] = "4f248483c094aea370fba86f1630ba5099cb230aa1337ab6ef6ff0b132be2c2b" - config["SigningPrivateKey"] = "e4d56eb2e15e25d9098731e39d661a80c523f31d38b71cbd0ad25a5cde745eac4f248483c094aea370fba86f1630ba5099cb230aa1337ab6ef6ff0b132be2c2b" + config["IfName"] = "tun0" + //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["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) {