diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-02-29 09:36:43 +0100 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-03-03 16:19:12 +0100 |
commit | b40df4c09eff5416974cbae1a8eefdde2dc990f3 (patch) | |
tree | 0b8db26b2d38029fd7e0be54e407c42d70ac8700 | |
parent | 5c1c0bad8968ec0be3d9cf58eb68f9648ed7ef2d (diff) |
cscn: apply vty bind addr configuration
-rw-r--r-- | openbsc/src/osmo-cscn/cscn_main.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/openbsc/src/osmo-cscn/cscn_main.c b/openbsc/src/osmo-cscn/cscn_main.c index 21ca01ec4..463b7f141 100644 --- a/openbsc/src/osmo-cscn/cscn_main.c +++ b/openbsc/src/osmo-cscn/cscn_main.c @@ -359,11 +359,14 @@ int main(int argc, char **argv) exit(1); } - rc = telnet_init(tall_cscn_ctx, cscn_network, OSMO_VTY_PORT_CSCN); + /* start telnet after reading config for vty_get_bind_addr() */ + LOGP(DGPRS, LOGL_NOTICE, "VTY at %s %d\n", + vty_get_bind_addr(), OSMO_VTY_PORT_SGSN); + rc = telnet_init_dynif(tall_cscn_ctx, &cscn_network, + vty_get_bind_addr(), OSMO_VTY_PORT_SGSN); if (rc < 0) return 2; - /* BSC stuff is to be split behind an A-interface to be used with * OsmoBSC, but there is no need to remove it yet. Most of the * following code until iu_init() is legacy. */ |