Skip to content

[BUG] Internet check doesn't validate TLS and IP solver #10

@natanael-b

Description

@natanael-b

ping -c 1 -W 2 8.8.8.8 > /dev/null 2>&1

Internet checks only ICMP reachability but script does a lot of HTTPs in CNAME URLs, the right way to check internet in this case will be try to download something in HTTPs:

wget -q -O - "https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/README.md" > /dev/null || echo "No internet, or TLS, or SSL handshake

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions