Обновить src/main/kotlin/Server.kt
This commit is contained in:
@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user