diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-05-31 23:42:20 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-05-31 23:42:48 +0200 |
commit | 80b8b606c5d77b43bf748e523ccf49cd5b8b97cf (patch) | |
tree | c7721ab847f97473654a4b690c7a7c0de19489b2 /src/osmo_server_vty.c | |
parent | 9f6127f592c979582a4d2d34627e09cfcd439778 (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.c | 3 |
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; } |