Pārlūkot izejas kodu

Add tailing slash. Regression of c629e4a5a420d0790fb9b81eb8b2192077cc0a0b

Stefan Profanter 7 gadi atpakaļ
vecāks
revīzija
b329666d8d
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/server/ua_mdns.c

+ 1 - 1
src/server/ua_mdns.c

@@ -242,7 +242,7 @@ setSrv(UA_Server *server, const struct resource *r,
 
     // todo: malloc may fail: return a statuscode
     char *newUrl = (char*)UA_malloc(10 + srvNameLen + 8);
-    sprintf(newUrl, "opc.tcp://%.*s:%d", (int) srvNameLen,
+    sprintf(newUrl, "opc.tcp://%.*s:%d/", (int) srvNameLen,
             r->known.srv.name, r->known.srv.port);
     UA_LOG_INFO(server->config.logger, UA_LOGCATEGORY_SERVER,
                 "Multicast DNS: found server: %s", newUrl);