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