Обновить src/main/kotlin/Server.kt

This commit is contained in:
2026-05-27 22:59:55 +03:00
parent fead9d4b20
commit 24563b79d4

View File

@ -8,7 +8,7 @@ import java.net.Socket
import java.io.DataInputStream import java.io.DataInputStream
fun startServer(address: String, port: Int, tun: String, outIntefrace: String) = runBlocking { fun startServer(address: String, port: Int, tun: String, outIntefrace: String) = runBlocking {
val tun = TunDevice(address, "awake0") val tun = TunDevice(address, tun)
tun.addRoute() tun.addRoute()
tun.enableIpForwarding() tun.enableIpForwarding()
tun.enableMasquerade(outIntefrace) tun.enableMasquerade(outIntefrace)