Skip to content

Commit

Permalink
Add documentation for resolver module
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Oct 3, 2024
1 parent 6d19752 commit 7236433
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions talpid-core/src/resolver.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
//! This module implements a forwarding DNS resolver with two states:
//! * In the `Blocked` state, most queries receive an empty response, but certain captive portal
//! domains receive a spoofed answer. This fools the OS into thinking that it has connectivity.
//! * In the `Forwarding` state, queries are forwarded to a set of configured DNS servers. This
//! lets us use the routing table to determine where to send them, instead of them being forced
//! out on the primary interface (in some cases).
use std::{
io,
net::{IpAddr, Ipv4Addr, SocketAddr},
Expand Down

0 comments on commit 7236433

Please sign in to comment.