Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
emulab-devel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
emulab
emulab-devel
Commits
b28586ee
Commit
b28586ee
authored
20 years ago
by
Leigh B. Stoller
Browse files
Options
Downloads
Patches
Plain Diff
Allow hostname:port syntax in -s (server) option.
parent
bffd5ebe
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xmlrpc/sslxmlrpc_client.py.in
+9
-0
9 additions, 0 deletions
xmlrpc/sslxmlrpc_client.py.in
with
9 additions
and
0 deletions
xmlrpc/sslxmlrpc_client.py.in
+
9
−
0
View file @
b28586ee
...
...
@@ -172,6 +172,12 @@ try:
pass
elif
opt
in
(
"
-s
"
,
"
--server
"
):
xmlrpc_server
=
val
#
# Allow port spec here too.
#
if
val
.
find
(
"
:
"
)
>
0
:
xmlrpc_server
,
xmlrpc_port
=
string
.
split
(
val
,
"
:
"
,
1
)
pass
pass
elif
opt
in
(
"
-p
"
,
"
--port
"
):
xmlrpc_port
=
val
...
...
@@ -208,6 +214,9 @@ ctx.set_allow_unknown_ca(0)
# This is parsed by the Proxy object.
URI
=
"
https://
"
+
xmlrpc_server
+
"
:
"
+
str
(
xmlrpc_port
)
if
debug
:
print
URI
pass
# Get a handle on the server,
server
=
xmlrpclib
.
ServerProxy
(
URI
,
SSL_Transport
(
ctx
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment