aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo_server_vty.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-05-31 23:42:20 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-05-31 23:42:48 +0200
commit80b8b606c5d77b43bf748e523ccf49cd5b8b97cf (patch)
treec7721ab847f97473654a4b690c7a7c0de19489b2 /src/osmo_server_vty.c
parent9f6127f592c979582a4d2d34627e09cfcd439778 (diff)
osmo-pcap-server: Accept the client connection from a given host
We now read from a given system.
Diffstat (limited to 'src/osmo_server_vty.c')
-rw-r--r--src/osmo_server_vty.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/osmo_server_vty.c b/src/osmo_server_vty.c
index 5d7d23d..2a40ef3 100644
--- a/src/osmo_server_vty.c
+++ b/src/osmo_server_vty.c
@@ -107,7 +107,8 @@ DEFUN(cfg_server_client,
}
talloc_free(conn->remote_host);
- conn->remote_host = talloc_strdup(pcap_server, argv[0]);
+ conn->remote_host = talloc_strdup(pcap_server, argv[1]);
+ inet_aton(argv[1], &conn->remote_addr);
return CMD_SUCCESS;
}