Automatically create a default discovery endpoint when endpoint does not support SecurityPolicy None
When a toolkit server is instantiated with an endpoint that does not support SecurityPolicy None, a Discovery Endpoint is automatically defined with the same endpoint URL to have access to Discovery Services only (optional behavior). If the initial endpoint configuration already support the SecurityPolicy None, the already configured endpoint is used as Discovery Endpoint and Session Endpoint.
This behavior is compliant with OPC UA specification part 4 (v1.03) §5.4.1 (discovery services set):
-
Every Server shall have a Discovery Endpoint that Clients can access without establishing a Session. This Endpoint may or may not be the same Session Endpoint that Clients use to establish a SecureChannel.
-
Servers shall allow Administrators to disable the Discovery Endpoint.