Skip to content

Commit 0052aae

Browse files
committed
Refine launcher UI and proxy transport behavior
1 parent b7936af commit 0052aae

15 files changed

Lines changed: 3437 additions & 501 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ release-downloads/
77
android/.gradle/
88
android/.kotlin/
99
android/**/build/
10+
.tmp/

Cargo.lock

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ directories = "6"
5656
http = "1"
5757
http-body-util = "0.1"
5858
hyper = { version = "1", features = ["http1", "server"] }
59-
hyper-util = { version = "0.1", features = ["server", "tokio"] }
59+
hyper-util = { version = "0.1", features = ["server", "server-auto", "http1", "http2", "tokio"] }
6060
libc = "0.2"
6161
rcgen = "0.12"
6262
reqwest = { version = "0.12", default-features = false, features = ["http2", "rustls-tls"] }
@@ -98,3 +98,6 @@ windows-sys = { version = "0.61", features = [
9898

9999
[build-dependencies]
100100
winresource = "0.1"
101+
102+
[patch.crates-io]
103+
egui-winit = { path = "vendor/egui-winit" }

assets/defaults/linuxdo-accelerator.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ fake_sni = "www.cloudflare.com"
88
doh_endpoints = [
99
"https://aaa.ddd.oaifree.com/query-dns",
1010
]
11-
managed_prefer_ipv6 = true
11+
managed_prefer_ipv6 = false
1212
dns_hosts = {}
1313
# example:
1414
# dns_hosts = { "example.com" = "1.1.1.1", "*.example.com" = "domain:real.example.net" }

src/config.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ pub struct AppConfig {
2323
pub fake_sni: Option<String>,
2424
#[serde(default = "default_doh_endpoints")]
2525
pub doh_endpoints: Vec<String>,
26+
#[serde(default = "default_managed_prefer_ipv6")]
27+
pub managed_prefer_ipv6: bool,
2628
#[serde(default)]
2729
pub dns_hosts: BTreeMap<String, String>,
2830
#[serde(default = "default_proxy_domains")]
@@ -91,6 +93,10 @@ fn default_doh_endpoints() -> Vec<String> {
9193
default_app_config().doh_endpoints
9294
}
9395

96+
fn default_managed_prefer_ipv6() -> bool {
97+
false
98+
}
99+
94100
fn default_proxy_domains() -> Vec<String> {
95101
default_app_config().proxy_domains
96102
}
@@ -157,6 +163,7 @@ impl AppConfig {
157163
.map(|value| value.doh_endpoints.clone())
158164
.filter(|value| !value.is_empty())
159165
.unwrap_or_else(default_doh_endpoints),
166+
managed_prefer_ipv6: default_managed_prefer_ipv6(),
160167
dns_hosts: BTreeMap::new(),
161168
proxy_domains: legacy_network
162169
.as_ref()

0 commit comments

Comments
 (0)