]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Merge pull request #11989 from fredmorcos/fred/11927-rec-stl-exception
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 26 Sep 2022 14:16:56 +0000 (16:16 +0200)
committerGitHub <noreply@github.com>
Mon, 26 Sep 2022 14:16:56 +0000 (16:16 +0200)
Improve error message when invalid values for `local-address` are provided in recursor config file

1  2 
pdns/pdns_recursor.cc
pdns/recursordist/rec-main.cc

index a9bfb82b90448df6b51fa90e0c034d141e34973c,75aacff0f04e05bc2e6ede26377b07d57cc94820..d839feef960b00ccaf8312e10bd676a6824ae112
@@@ -2450,9 -2444,8 +2444,8 @@@ void makeUDPServerSockets(deferredAdd_t
      }
      catch (const std::exception& e) {
        SLOG(g_log << Logger::Error << e.what() << endl,
 -           log->error(Logr::Error, e.what(), "Exception while setting socker buffer size"));
 +           log->error(Logr::Error, e.what(), "Exception while setting socket buffer size"));
      }
-     sin.sin4.sin_port = htons(st.port);
  
      if (g_reusePort) {
  #if defined(SO_REUSEPORT_LB)
Simple merge