From 7a86bccd50a85dfb34652db8a376e84538a88d00 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Thu, 11 Apr 2013 19:27:27 +0200 Subject: charon-cmd: Use dynamic ports with the socket-default plugin --- src/charon-cmd/charon-cmd.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/charon-cmd') diff --git a/src/charon-cmd/charon-cmd.c b/src/charon-cmd/charon-cmd.c index d0fc4da07..a493b17c7 100644 --- a/src/charon-cmd/charon-cmd.c +++ b/src/charon-cmd/charon-cmd.c @@ -323,6 +323,8 @@ int main(int argc, char *argv[]) { exit(SS_RC_INITIALIZATION_FAILED); } + lib->settings->set_default_str(lib->settings, "charon-cmd.port", "0"); + lib->settings->set_default_str(lib->settings, "charon-cmd.port_nat_t", "0"); if (!charon->initialize(charon, lib->settings->get_str(lib->settings, "charon-cmd.load", PLUGINS))) { -- cgit v1.2.3