Skip to content

Commit

Permalink
change network layer from synchronous to asynchronous for mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
lazytiger committed Jul 5, 2023
1 parent 2d5c01a commit 9eedd0e
Show file tree
Hide file tree
Showing 10 changed files with 298 additions and 320 deletions.
89 changes: 2 additions & 87 deletions mobile/src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions mobile/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ serde_json = "1.0"
log = "0.4"
lazy_static = "1.4"
derive_more = "0.99"
smoltcp = "0.9"
smoltcp = "0.10"
rustls = { version = "0.21", features = [] }
hyper-rustls = "0.24"
itertools = "0.10"
bytes = "1.4"
crossbeam = "0.8"
Expand All @@ -49,6 +48,3 @@ android_logger = "0.13"
# this feature is used for production builds or when `devPath` points to the filesystem
# DO NOT REMOVE!!
custom-protocol = ["tauri/custom-protocol"]

[profile.release]
debug = false
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ class TrojanProxy : VpnService() {
builder.addRoute(parts[0], parts[1].toInt())
}
builder.addRoute("10.10.11.1", 32)
//.addRoute("8.8.8.8", 32)
//.addRoute("212.103.62.58", 32)
.addAddress("10.10.10.1", 30)
.addDnsServer("10.10.11.1")
.addDnsServer("8.8.8.8")
Expand Down
Loading

0 comments on commit 9eedd0e

Please sign in to comment.