Make the UDP ports charon listens for packets on (and uses as source ports) configurable.
[strongswan.git] / src / libcharon / processing / jobs / migrate_job.c
index 45bac7c..6e5b4af 100644 (file)
@@ -97,7 +97,7 @@ METHOD(job_t, execute, job_requeue_t,
                ike_sa->set_kmaddress(ike_sa, this->local, this->remote);
 
                host = this->local->clone(this->local);
-               host->set_port(host, IKEV2_UDP_PORT);
+               host->set_port(host, CHARON_UDP_PORT);
                ike_sa->set_my_host(ike_sa, host);
 
                host = this->remote->clone(this->remote);