aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon-cmd
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2013-04-11 19:27:27 +0200
committerMartin Willi <martin@revosec.ch>2013-05-06 15:28:27 +0200
commit7a86bccd50a85dfb34652db8a376e84538a88d00 (patch)
treeed27b6f0eb8960702f739c222d99c4aae8e97728 /src/charon-cmd
parent69333acee088a80795467f785a3a82bfc9159984 (diff)
downloadstrongswan-7a86bccd50a85dfb34652db8a376e84538a88d00.tar.bz2
strongswan-7a86bccd50a85dfb34652db8a376e84538a88d00.tar.xz
charon-cmd: Use dynamic ports with the socket-default plugin
Diffstat (limited to 'src/charon-cmd')
-rw-r--r--src/charon-cmd/charon-cmd.c2
1 files changed, 2 insertions, 0 deletions
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)))
{