aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2023-08-22 17:44:38 +0200
committerHimbeerserverDE <himbeerserverde@gmail.com>2023-08-22 17:44:38 +0200
commit5e4d84708c6fb95058a606a343de2a87e6593b96 (patch)
tree9c847cf302761dc013e931293cb69baebfcd6191 /src
parent4a0438c1e4a77d95d1395ef16c85fccb25331abc (diff)
change upstream
Diffstat (limited to 'src')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index b3b8fd9..79e3def 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -20,7 +20,7 @@ use notify::{Event, EventKind, RecursiveMode, Watcher};
use rsdsl_dhcp4d::lease::Lease;
use trust_dns_proto::rr::Name;
-const UPSTREAM: &str = "8.8.8.8:53";
+const UPSTREAM: &str = "[2620:fe::fe]:53";
fn refresh_leases(cache: Arc<RwLock<Vec<Lease>>>) -> Result<()> {
let mut watcher = notify::recommended_watcher(move |res: notify::Result<Event>| match res {
@@ -253,7 +253,7 @@ fn handle_query(
if !msg.questions.is_empty() {
let bytes = msg.encode()?;
- let uplink = UdpSocket::bind("0.0.0.0:0")?;
+ let uplink = UdpSocket::bind("[::]:0")?;
uplink.set_read_timeout(Some(Duration::from_secs(1)))?;
uplink.connect(UPSTREAM)?;