aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo_client_main.c
diff options
context:
space:
mode:
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();