diff --git a/debian/changelog b/debian/changelog index 64538c8..226f139 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +plexus (3.1-2+deb12u3) unstable; urgency=low + + * - Set default value to --exec-args argument. + + -- Novemus Band Thu, 8 Aug 2024 00:07:00 +0300 + plexus (3.1-1+deb12u3) unstable; urgency=low * - The ability to use DHT as the rendezvous. diff --git a/main.cpp b/main.cpp index ec21b59..76450f0 100644 --- a/main.cpp +++ b/main.cpp @@ -74,7 +74,7 @@ int main(int argc, char** argv) ("email-ca", boost::program_options::value()->default_value(""), "path to the email Certification Authority") ("punch-hops", boost::program_options::value()->default_value(7), "time-to-live parameter for the punch packet") ("exec-command", boost::program_options::value()->required(), "command executed after punching the NAT") - ("exec-args", boost::program_options::value()->default_value(""), "arguments for the command executed after punching the NAT, allowed wildcards: %innerip%, %innerport%, %outerip%, %outerport%, %peerip%, %peerport%, %secret%, %hostpin%, %peerpin%, %hostemail%, %peeremail%") + ("exec-args", boost::program_options::value()->default_value("%innerip% %innerport% %outerip% %outerport% %peerip% %peerport%"), "arguments for the command executed after punching the NAT, allowed wildcards: %innerip%, %innerport%, %outerip%, %outerport%, %peerip%, %peerport%, %secret%, %hostpin%, %peerpin%, %hostemail%, %peeremail%") ("exec-pwd", boost::program_options::value()->default_value(""), "working directory for executable, the above wildcards are allowed") ("exec-log", boost::program_options::value()->default_value(""), "exec log file, the above wildcards are allowed") ("log-level", boost::program_options::value()->default_value(wormhole::log::info), "log level: ")