From 1b0321310cab69736599a4adde8cbf3ae4f7c0d2 Mon Sep 17 00:00:00 2001 From: twisterarmy Date: Wed, 30 Apr 2025 09:35:25 +0300 Subject: [PATCH] add comment for the extra lookup validation --- src/twister.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/twister.cpp b/src/twister.cpp index e000490d..798629da 100644 --- a/src/twister.cpp +++ b/src/twister.cpp @@ -331,6 +331,8 @@ void ThreadWaitExtIP() if (mapArgs.count("-bind")) { // respect bind address and family for DHT services (#254) BOOST_FOREACH(std::string strBind, mapMultiArgs["-bind"]) { CService addrBind; + // the binding address should be valid at this point, as checked in the `init.cpp` step, + // just let's ensure this by adding an additional `Lookup` validation if (Lookup(strBind.c_str(), addrBind, GetListenPort(), false)) bind_to_interface = strBind.c_str(); else