Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
opcua-asyncio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nikola Balog
opcua-asyncio
Commits
510f7f55
Commit
510f7f55
authored
Dec 20, 2015
by
ORD
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #82 from alkor/quick-fix
Set default security policy
parents
be43b413
395d9918
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
opcua/tools.py
opcua/tools.py
+5
-2
No files found.
opcua/tools.py
View file @
510f7f55
...
...
@@ -89,8 +89,11 @@ def parse_args(parser, requirenodeid=False):
if
args
.
url
and
'://'
not
in
args
.
url
:
logging
.
info
(
"Adding default scheme %s to URL %s"
,
ua
.
OPC_TCP_SCHEME
,
args
.
url
)
args
.
url
=
ua
.
OPC_TCP_SCHEME
+
'://'
+
args
.
url
if
hasattr
(
args
,
'security'
)
and
args
.
security
:
args
.
security
=
client_security
(
args
.
security
,
args
.
url
,
args
.
timeout
)
if
hasattr
(
args
,
'security'
):
if
args
.
security
:
args
.
security
=
client_security
(
args
.
security
,
args
.
url
,
args
.
timeout
)
else
:
args
.
security
=
ua
.
SecurityPolicy
()
# check that a nodeid has been given explicitly, a bit hackish...
if
requirenodeid
and
args
.
nodeid
==
"i=84"
and
args
.
path
==
""
:
parser
.
print_usage
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment