]> git.ipfire.org Git - people/ms/strongswan.git/blobdiff - src/charon-nm/nm/nm_service.c
Replaced usages of CHARON_*_PORT with calls to get_port().
[people/ms/strongswan.git] / src / charon-nm / nm / nm_service.c
index affe281fa2aa46189d6f30cfebf309d781dc0445..ccfa210a02f4ec6355e56068f6cd86b423bcb56d 100644 (file)
@@ -497,7 +497,8 @@ static gboolean connect_(NMVPNPlugin *plugin, NMConnection *connection,
        /**
         * Set up configurations
         */
-       ike_cfg = ike_cfg_create(TRUE, encap, "0.0.0.0", FALSE, CHARON_UDP_PORT,
+       ike_cfg = ike_cfg_create(TRUE, encap, "0.0.0.0", FALSE,
+                                                        charon->socket->get_port(charon->socket, FALSE),
                                                        (char*)address, FALSE, IKEV2_UDP_PORT);
        ike_cfg->add_proposal(ike_cfg, proposal_create_default(PROTO_IKE));
        peer_cfg = peer_cfg_create(priv->name, IKEV2, ike_cfg,