aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo_client_main.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-11-08 23:00:33 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-11-09 01:04:04 +0100
commitd7ab53dc168ff2aac4d0eea8f0ecb3377e03103b (patch)
tree49c8137b118fd432be66e2de3b2ed76c2bcf8b00 /src/osmo_client_main.c
parent1448f50db40b06a36783f2d1dd5d8e0ab865aa03 (diff)
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
Diffstat (limited to 'src/osmo_client_main.c')
-rw-r--r--src/osmo_client_main.c3
1 files changed, 2 insertions, 1 deletions
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();