diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-11-08 15:07:42 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-11-08 15:07:45 +0100 |
commit | b92589a1a2731911ea551e4ba729794145806419 (patch) | |
tree | c2fa3f7c94f557f72e830fd11b488b459b72b16b | |
parent | 7cc8c03088f733ff2a98be0bc31bc1e60a4d6cb5 (diff) |
ss7: Set ASP default remote addr to 127.0.0.1 if none set in VTY
Similar to what we do with local address. Should fix creating the stream
when no remote address is provided on an ASP configured through VTY.
Related: OS#4260
Change-Id: I33672e76a51a5d5a483906749d30e4c4e08b66ce
-rw-r--r-- | src/osmo_ss7_vty.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/osmo_ss7_vty.c b/src/osmo_ss7_vty.c index 35640df..1a246db 100644 --- a/src/osmo_ss7_vty.c +++ b/src/osmo_ss7_vty.c @@ -1775,6 +1775,11 @@ int osmo_ss7_vty_go_parent(struct vty *vty) asp->cfg.local.host[0] = NULL; asp->cfg.local.host_cnt = 1; } + /* If no remote addr was set */ + if (!asp->cfg.remote.host_cnt) { + asp->cfg.remote.host[0] = "127.0.0.1"; + asp->cfg.remote.host_cnt = 1; + } osmo_ss7_asp_restart(asp); vty->node = L_CS7_NODE; vty->index = asp->inst; |