From d7ab53dc168ff2aac4d0eea8f0ecb3377e03103b Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Tue, 8 Nov 2016 23:00:33 +0100 Subject: client: Do not connect default connection if no ip/port present Ignore the default connection if no srv_port and has been specified. Change-Id: I6a3a9a0af73a9183a6b233937af3357d15a07f25 --- src/osmo_client_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/osmo_client_main.c b/src/osmo_client_main.c index 89ef5f6..89d7e04 100644 --- a/src/osmo_client_main.c +++ b/src/osmo_client_main.c @@ -239,7 +239,8 @@ int main(int argc, char **argv) } /* attempt to connect to the remote */ - osmo_client_connect(&pcap_client->conn); + if (pcap_client->conn.srv_ip && pcap_client->conn.srv_port > 0) + osmo_client_connect(&pcap_client->conn); if (daemonize) { rc = osmo_daemonize(); -- cgit v1.2.3