Add back reapplying rules

This commit is contained in:
Mygod
2018-01-13 22:51:47 +08:00
parent 606d5adc8f
commit 9486941fc6
8 changed files with 29 additions and 11 deletions

View File

@@ -26,7 +26,6 @@ class Routing(private val upstream: String, val downstream: String, ownerAddress
private val startScript = LinkedList<String>()
private val stopScript = LinkedList<String>()
var started = false
private set
fun ipForward(): Routing {
startScript.add("echo 1 >/proc/sys/net/ipv4/ip_forward")