mirror of https://gerrit.osmocom.org/osmo-pcap
use telnet_init_dynif() to allow VTY bind to non-loopack address
Prior to this patch, you could configure 'bind 1.2.3.4' in the config file, but the telnet interface still binds to 127.0.0.1. Change-Id: I9b86b2cf6949917c55ea15277619cfa2b745185d
This commit is contained in:
parent
9148d49841
commit
dd1389c3d3
|
@ -259,7 +259,7 @@ int main(int argc, char **argv)
|
|||
|
||||
osmo_tls_init();
|
||||
|
||||
rc = telnet_init(tall_cli_ctx, NULL, OSMO_VTY_PORT_PCAP_CLIENT);
|
||||
rc = telnet_init_dynif(tall_cli_ctx, NULL, vty_get_bind_addr(), OSMO_VTY_PORT_PCAP_CLIENT);
|
||||
if (rc < 0) {
|
||||
LOGP(DCLIENT, LOGL_ERROR, "Failed to bind telnet interface\n");
|
||||
exit(1);
|
||||
|
|
|
@ -271,7 +271,7 @@ int main(int argc, char **argv)
|
|||
|
||||
osmo_tls_init();
|
||||
|
||||
rc = telnet_init(tall_srv_ctx, NULL, OSMO_VTY_PORT_PCAP_SERVER);
|
||||
rc = telnet_init_dynif(tall_srv_ctx, NULL, vty_get_bind_addr(), OSMO_VTY_PORT_PCAP_SERVER);
|
||||
if (rc < 0) {
|
||||
LOGP(DCLIENT, LOGL_ERROR, "Failed to bind telnet interface\n");
|
||||
exit(1);
|
||||
|
|
Loading…
Reference in New Issue