commit | 80b8b606c5d77b43bf748e523ccf49cd5b8b97cf | [log] [tgz] |
---|---|---|
author | Holger Hans Peter Freyther <zecke@selfish.org> | Tue May 31 23:42:20 2011 +0200 |
committer | Holger Hans Peter Freyther <zecke@selfish.org> | Tue May 31 23:42:48 2011 +0200 |
tree | c7721ab847f97473654a4b690c7a7c0de19489b2 | |
parent | 9f6127f592c979582a4d2d34627e09cfcd439778 [diff] [blame] |
osmo-pcap-server: Accept the client connection from a given host We now read from a given system.
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 @@ } 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; }