Commit 28d7a961 authored by Ivan Tyagov's avatar Ivan Tyagov

Disable binding to all specified interface until this feature lands to a stable release.

parent 6cbe1704
...@@ -93,7 +93,8 @@ int main(int argc, char **argv) ...@@ -93,7 +93,8 @@ int main(int argc, char **argv)
server = UA_Server_new(); server = UA_Server_new();
UA_ServerConfig_setMinimal(UA_Server_getConfig(server), OPC_UA_PORT, NULL); UA_ServerConfig_setMinimal(UA_Server_getConfig(server), OPC_UA_PORT, NULL);
UA_ServerConfig *config = UA_Server_getConfig(server); UA_ServerConfig *config = UA_Server_getConfig(server);
/* Disable binding to all specified interface until this feature lands to a stable release.
// opc_ua server is listening to user input address else on all interfaces // opc_ua server is listening to user input address else on all interfaces
// user input ip address should be added to any of the interface else no server socket will be created // user input ip address should be added to any of the interface else no server socket will be created
if(OPC_UA_ADDRESS!= NULL){ if(OPC_UA_ADDRESS!= NULL){
...@@ -115,6 +116,7 @@ int main(int argc, char **argv) ...@@ -115,6 +116,7 @@ int main(int argc, char **argv)
if(ret_val != UA_STATUSCODE_GOOD){ if(ret_val != UA_STATUSCODE_GOOD){
return ret_val; return ret_val;
} }
*/
config->serverUrlsSize = serverUrlsSize; config->serverUrlsSize = serverUrlsSize;
} }
config->verifyRequestTimestamp = UA_RULEHANDLING_ACCEPT; config->verifyRequestTimestamp = UA_RULEHANDLING_ACCEPT;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment