mirror of https://github.com/oxen-io/lokinet
0.9.6 Fedora package
parent
6c32f87445
commit
1144978f1a
Binary file not shown.
@ -1,23 +0,0 @@
|
||||
commit 73f0432b2873d3af91a0c8cf2dd107463318b9d9
|
||||
Author: Jason Rhinelander <jason@imaginary.ca>
|
||||
Date: Wed Aug 11 18:24:11 2021 -0300
|
||||
|
||||
Fix default upstream DNS not working
|
||||
|
||||
The default upstream DNS was being set to 1.1.1.1:0, which doesn't work.
|
||||
This fixes it to also set the port so that default upstream resolution
|
||||
(i.e. with an empty config) works again.
|
||||
|
||||
diff --git a/llarp/config/config.cpp b/llarp/config/config.cpp
|
||||
index bef3e521f..721a479df 100644
|
||||
--- a/llarp/config/config.cpp
|
||||
+++ b/llarp/config/config.cpp
|
||||
@@ -711,6 +711,8 @@ namespace llarp
|
||||
// Default, but if we get any upstream (including upstream=, i.e. empty string) we clear it
|
||||
constexpr Default DefaultUpstreamDNS{"1.1.1.1"};
|
||||
m_upstreamDNS.emplace_back(DefaultUpstreamDNS.val);
|
||||
+ if (!m_upstreamDNS.back().getPort())
|
||||
+ m_upstreamDNS.back().setPort(53);
|
||||
|
||||
conf.defineOption<std::string>(
|
||||
"dns",
|
Loading…
Reference in New Issue