Commit 271034d1 authored by JuanoD's avatar JuanoD Committed by oroulet

Remove default uri register

Moved the uri registration so it doesn't register default uri before application uri is set.
parent 00309a63
......@@ -97,7 +97,6 @@ class Server(object):
self.nodes = Shortcuts(self.iserver.isession)
# setup some expected values
self.register_namespace(self.application_uri)
sa_node = self.get_node(ua.NodeId(ua.ObjectIds.Server_ServerArray))
sa_node.set_value([self.application_uri])
......@@ -196,6 +195,7 @@ class Server(object):
def _setup_server_nodes(self):
# to be called just before starting server since it needs all parameters to be setup
self.register_namespace(self.application_uri)
self._set_endpoints()
self._policies = [ua.SecurityPolicyFactory()]
if self.certificate and self.private_key:
......
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