Browse Source

Update ua_network_tcp.c

StalderT 6 years ago
parent
commit
c629e4a5a4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      plugins/ua_network_tcp.c

+ 2 - 2
plugins/ua_network_tcp.c

@@ -416,11 +416,11 @@ ServerNetworkLayerTCP_start(UA_ServerNetworkLayer *nl) {
     if(gethostname(hostname, 255) == 0) {
         char discoveryUrl[256];
 #ifndef _MSC_VER
-        du.length = (size_t)snprintf(discoveryUrl, 255, "opc.tcp://%s:%d",
+        du.length = (size_t)snprintf(discoveryUrl, 255, "opc.tcp://%s:%d/",
                                      hostname, layer->port);
 #else
         du.length = (size_t)_snprintf_s(discoveryUrl, 255, _TRUNCATE,
-                                        "opc.tcp://%s:%d", hostname,
+                                        "opc.tcp://%s:%d/", hostname,
                     layer->port);
 #endif
         du.data = (UA_Byte*)discoveryUrl;