Skip to content

Commit

Permalink
doc: Add some missing comments about android default route (#828)
Browse files Browse the repository at this point in the history
  • Loading branch information
flub authored Mar 11, 2023
1 parent 6f4e2fb commit 1fedf46
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/hp/interfaces/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ async fn default_route_proc() -> Result<Option<DefaultRouteDetails>> {
Ok(None)
}

/// Try find the default route by parsing the "ip route" command output.
///
/// We use this on Android where /proc/net/route can be missing entries or have locked-down
/// permissions. See also comments in /~https://github.com/tailscale/tailscale/pull/666.
#[cfg(target_os = "android")]
pub async fn default_route_android_ip_route() -> Result<Option<DefaultRouteDetails>> {
use tokio::process::Command;
Expand Down

0 comments on commit 1fedf46

Please sign in to comment.