aboutsummaryrefslogtreecommitdiffstats
path: root/src/client_find_servers.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/client_find_servers.c')
-rw-r--r--src/client_find_servers.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client_find_servers.c b/src/client_find_servers.c
index c62fc15..4789b38 100644
--- a/src/client_find_servers.c
+++ b/src/client_find_servers.c
@@ -160,7 +160,8 @@ readServerTime (UA_Client *client,
UA_LOG_INFO (UA_Log_Stdout, UA_LOGCATEGORY_CLIENT,
"Connecting to %s to read current time...", url);
- UA_StatusCode retval = UA_Client_connect (client, url);
+ UA_StatusCode retval
+ = UA_Client_connectUsername (client, url, "user", "password");
UA_free (url);
if (retval != UA_STATUSCODE_GOOD)
{