diff --git a/motor/providers/opcua/opcua.go b/motor/providers/opcua/opcua.go index 87885de441..447d789fb6 100644 --- a/motor/providers/opcua/opcua.go +++ b/motor/providers/opcua/opcua.go @@ -49,7 +49,7 @@ func New(pCfg *providers.Config) (*Provider, error) { opcua.SecurityFromEndpoint(ep, ua.UserTokenTypeAnonymous), } - c := opcua.NewClient(ep.EndpointURL, opts...) + c := opcua.NewClient(endpoint, opts...) if err := c.Connect(ctx); err != nil { return nil, err }