Fix Android VPN startup and verify automatic subnet routing
This commit is contained in:
Vendored
+1
@@ -7,6 +7,7 @@ Imported using git archive. Retained LGPL-3.0 LICENSE and upstream crate sources
|
||||
This is a local source customization, not a published GitHub fork. Root workspace members were limited to easytier, easytier-core and easytier-proto for the SDK build. MeshPort root uses path dependencies and its own Cargo.lock.
|
||||
|
||||
Local modifications:
|
||||
- easytier/src/common/dns.rs: resolve numeric bootstrap addresses without DNS, including when a platform socket protector is installed.
|
||||
- easytier/src/common/network.rs: macOS hardware enumeration uses blocking subprocess waits; physical connection candidates exclude route-probe addresses and nonphysical IPv6 interfaces so another VPN's TUN is not reintroduced. Hardware device names match exactly.
|
||||
- easytier-core/src/peers/meshport_optimization.rs: direct preference, improvement thresholds, hold/cooldown and candidate first-hop filter.
|
||||
- easytier-core/src/peers/mod.rs: exposes policy module.
|
||||
|
||||
+4
@@ -350,6 +350,10 @@ impl RuntimeDnsResolver {
|
||||
#[async_trait]
|
||||
impl DnsResolver for RuntimeDnsResolver {
|
||||
async fn resolve(&self, query: DnsQuery) -> anyhow::Result<Vec<IpAddr>> {
|
||||
// Numeric bootstrap endpoints do not require any DNS socket.
|
||||
if let Ok(address) = query.host.parse::<IpAddr>() {
|
||||
return Ok(vec![address]);
|
||||
}
|
||||
let context = RuntimeDnsIoContext::from_socket_context(&query.context);
|
||||
#[cfg(feature = "dns-resolver")]
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user