make use of local IP address of #sigtran_peer actually work
diff --git a/src/ss7_link_m3ua.erl b/src/ss7_link_m3ua.erl
index d04e4bf..15ba837 100644
--- a/src/ss7_link_m3ua.erl
+++ b/src/ss7_link_m3ua.erl
@@ -57,8 +57,9 @@
#sigtran_peer{ip = LocalIp, port = LocalPort} = Local,
#sigtran_peer{ip = RemoteIp, port = RemotePort} = Remote,
% start the M3UA link to the SG
- Opts = [{user_pid, self()}, {sctp_remote_ip, RemoteIp},
- {sctp_remote_port, RemotePort}, {sctp_local_port, LocalPort},
+ Opts = [{user_pid, self()},
+ {sctp_remote_ip, RemoteIp}, {sctp_remote_port, RemotePort},
+ {sctp_local_ip, LocalIp}, {sctp_local_port, LocalPort},
{user_fun, fun m3ua_tx_to_user/2}, {user_args, self()}],
{ok, M3uaPid} = m3ua_core:start_link(Opts),
% FIXME: register this link with SCCP_SCRC