arblant
firefox-vpn-client / core / internal / proxy / failure_other.go
failure_other.go12 lines · 404 B
1 2 3 4 5 6 7 8 9 10 11 12
//go:build !windows

package proxy

import "syscall"

// noNetworkErrnos are the socket errors that mean this device has no route
// to the internet.
var noNetworkErrnos = []syscall.Errno{syscall.ENETDOWN, syscall.ENETUNREACH, syscall.EHOSTUNREACH}

// cutErrnos are a connection refused, reset, or aborted.
var cutErrnos = []syscall.Errno{syscall.ECONNRESET, syscall.ECONNABORTED, syscall.ECONNREFUSED}