diff options
author | Martin Willi <martin@revosec.ch> | 2013-04-11 19:27:27 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2013-05-06 15:28:27 +0200 |
commit | 7a86bccd50a85dfb34652db8a376e84538a88d00 (patch) | |
tree | ed27b6f0eb8960702f739c222d99c4aae8e97728 /src/charon-cmd | |
parent | 69333acee088a80795467f785a3a82bfc9159984 (diff) | |
download | strongswan-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.c | 2 |
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))) { |