aboutsummaryrefslogtreecommitdiffstats
path: root/ggsn/ggsn.c
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-06-19 11:50:02 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-06-19 11:52:00 +0200
commit3e0baa614687a1ef39337b660d470393518cc6ad (patch)
treec69be2e52c3f7ecc86783e02145f4b66328d160e /ggsn/ggsn.c
parentb673d1c438488fb74abda344e563d733e5ce451a (diff)
ggsn: ctrl iface: listen on IP configured by VTY
Previosuly, the CTRL iface of osmo-ggsn was always bound to 127.0.0.1 Fixes: OS#3287 Change-Id: I9b2c1b310c7dc94ef09642f7f256ae259b41619d
Diffstat (limited to 'ggsn/ggsn.c')
-rw-r--r--ggsn/ggsn.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ggsn/ggsn.c b/ggsn/ggsn.c
index 14bf04f..6d879c0 100644
--- a/ggsn/ggsn.c
+++ b/ggsn/ggsn.c
@@ -1111,7 +1111,8 @@ int main(int argc, char **argv)
if (rc < 0)
exit(1);
- g_ctrlh = ctrl_interface_setup(NULL, OSMO_CTRL_PORT_GGSN, NULL);
+ g_ctrlh = ctrl_interface_setup_dynip(NULL, ctrl_vty_get_bind_addr(),
+ OSMO_CTRL_PORT_GGSN, NULL);
if (!g_ctrlh) {
LOGP(DGGSN, LOGL_ERROR, "Failed to create CTRL interface.\n");
exit(1);