Обновить src/main/kotlin/Server.kt
This commit is contained in:
@ -8,7 +8,7 @@ import java.net.Socket
|
||||
import java.io.DataInputStream
|
||||
|
||||
fun startServer(address: String, port: Int, tun: String, outIntefrace: String) = runBlocking {
|
||||
val tun = TunDevice(address, "awake0")
|
||||
val tun = TunDevice(address, tun)
|
||||
tun.addRoute()
|
||||
tun.enableIpForwarding()
|
||||
tun.enableMasquerade(outIntefrace)
|
||||
|
||||
Reference in New Issue
Block a user