EoIP + IPSec with two dynamic IPs

Hi!

Few versions ago ROS got support for dynamic IPs for EoIP tunnels. However yestarday I came across a problem - both sides of the tunnel are on dynamic IPs and the tunnel require IPSec.
Since IPSec configuration of EoIP require proper local address I entered domains both in local and remote addresses. The problem is while remote-address is persisted as domain and IP is fetched on connection local-address domain is resolved and than saved as an IP :frowning:

How can I overcome this problem?
Is there any way to assign script to connection event or WAN address change? I don’t think running script in timed interval is a good solution here.

p.s. I think don’t know why MT added domain support for remote-address only, hmm..