Parcourir la source

Add tailing slash. Regression of c629e4a5a420d0790fb9b81eb8b2192077cc0a0b

Stefan Profanter il y a 7 ans
Parent
commit
b329666d8d
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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);