Pārlūkot izejas kodu

Update ua_network_tcp.c

StalderT 7 gadi atpakaļ
vecāks
revīzija
c629e4a5a4
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  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;