-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Protect InternetChecker from being tricked by a captive portal
This is a partial fix for the InternetChecker to keep it from being tricked by a captive portal that resolves DNS queries to itself. What was happening was that the remote host that was being checked got redirected to the captive portal. Since the ping test is simplistic, it only makes a TCP connection to the specified host and port, it was successful due to the port being 443. This made the InternetChecker think that it had connected to a remote host and it hadn't. The updated behavior is to verify that the IP address to check is not on the LAN (off subnet). This, of course, isn't perfect since the captive portal can make up off-LAN IP addresses just as easy as local ones, but the hope is that it is a low risk way of reducing false positives.
- Loading branch information
Showing
4 changed files
with
57 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters