From: Pieter Lexis Date: Thu, 16 Apr 2015 08:24:51 +0000 (+0200) Subject: dnsdist: trim -l options X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~88^2~10^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a363878ddd4e1656bd53822270ed2d63f66deab;p=thirdparty%2Fpdns.git dnsdist: trim -l options This helps the convertion to ComboAddress --- diff --git a/pdns/dnsdist.cc b/pdns/dnsdist.cc index 28eba18055..fc4a5cf666 100644 --- a/pdns/dnsdist.cc +++ b/pdns/dnsdist.cc @@ -893,7 +893,7 @@ try exit(EXIT_SUCCESS); break; case 'l': - g_cmdLine.locals.push_back(optarg); + g_cmdLine.locals.push_back(trim_copy(string(optarg))); break; case 'v': g_verbose=true; diff --git a/pdns/namespaces.hh b/pdns/namespaces.hh index d6b3d7e9e7..7aeedb1895 100644 --- a/pdns/namespaces.hh +++ b/pdns/namespaces.hh @@ -55,6 +55,7 @@ using boost::any_cast; using boost::any; using boost::function; using boost::trim; +using boost::trim_copy; using boost::trim_left; using boost::trim_right; using boost::is_any_of;