Skip to content

Commit

Permalink
forgot to rename ProxySerer and ProxyClient in android project
Browse files Browse the repository at this point in the history
  • Loading branch information
compscidr committed Dec 17, 2024
1 parent f2581a1 commit 755dbd5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class AndroidClient(
vpnFileDescriptor: ParcelFileDescriptor,
onlyDestinations: List<InetAddress> = emptyList(),
onlyProtocols: List<UByte> = emptyList()
) : Client(datagramChannel, packetDumper, onlyDestinations, onlyProtocols) {
) : ProxyClient(datagramChannel, packetDumper, onlyDestinations, onlyProtocols) {

private val inputStream = AutoCloseInputStream(vpnFileDescriptor)
private val outputStream = AutoCloseOutputStream(vpnFileDescriptor)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class KAnonVpnService: VpnService(), VpnUiService, ConnectedUsersChangedCallback
private val packetDumper = PcapNgTcpServerPacketDumper(callback = this, isSimple = false)
private lateinit var viewModel: KAnonViewModel

private lateinit var server: Server
private lateinit var server: ProxyServer
private lateinit var client: AndroidClient
private lateinit var vpnFileDescriptor: ParcelFileDescriptor

Expand Down Expand Up @@ -62,7 +62,7 @@ class KAnonVpnService: VpnService(), VpnUiService, ConnectedUsersChangedCallback
val serverChannel = DatagramChannel.open()
serverChannel.configureBlocking(false)
serverChannel.bind(InetSocketAddress(DEFAULT_PORT))
server = Server(datagramChannel = serverChannel, icmp = IcmpAndroid, protector = this)
server = ProxyServer(datagramChannel = serverChannel, icmp = IcmpAndroid, protector = this)
server.start()

val builder = Builder()
Expand Down

0 comments on commit 755dbd5

Please sign in to comment.