Skip to content

omarchy-network-status: 100% packet loss when 1.1.1.1 is unreachable #9261

Description

@0zgenius

Description

omarchy-network-status hardcodes 1.1.1.1 (Cloudflare DNS) as the sole internet ping probe. On networks that block ICMP to 1.1.1.1, the network panel shows "Timeout" and "100% Packet Loss" — even though the internet connection is fully functional and data is flowing normally.

Steps to Reproduce

  1. Connect to a network that blocks ICMP to 1.1.1.1 (but allows it to other hosts like 8.8.8.8)
  2. Open the network panel
  3. Observe "Timeout" / "100% Packet Loss" despite working internet

Expected Behavior

Panel shows real latency and 0% packet loss.

Actual Behavior

Panel shows Timeout / 100% loss.

Suggested Fix

Try multiple probe addresses (1.1.1.1, 8.8.8.8, 9.9.9.9, 208.67.222.222) and use the first that responds. I've locally patched omarchy-network-status with this approach and it works correctly:

ping_best_internet_probe() {
  local result
  result=$(ping_latency_ms "$internet_probe")
  if [[ -n $result ]]; then
    printf '%s' "$result"
    return
  fi
  local probe
  for probe in $internet_fallback_probes; do
    result=$(ping_latency_ms "$probe")
    if [[ -n $result ]]; then
      printf '%s' "$result"
      return
    fi
  done
}

Environment

  • Omarchy latest
  • Network: ozgenius_5G (5GHz Wi-Fi)
  • Router/gateway reachable, internet functional, but 1.1.1.1 ICMP blocked

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions