aboutsummaryrefslogtreecommitdiffstats
path: root/pathoc
diff options
context:
space:
mode:
Diffstat (limited to 'pathoc')
-rwxr-xr-xpathoc8
1 files changed, 1 insertions, 7 deletions
diff --git a/pathoc b/pathoc
index 1d3f6004..42369b37 100755
--- a/pathoc
+++ b/pathoc
@@ -96,18 +96,12 @@ if __name__ == "__main__":
try:
for i in range(args.repeat):
- p = pathoc.Pathoc(args.host, port)
+ p = pathoc.Pathoc(args.host, port, args.ssl, args.sni)
try:
p.connect()
except tcp.NetLibError, v:
print >> sys.stderr, str(v)
sys.exit(1)
- if args.ssl:
- try:
- p.convert_to_ssl(sni=args.sni)
- except tcp.NetLibError, v:
- print "\n>> %s"%v
- continue
if args.timeout:
p.settimeout(args.timeout)
for spec in args.request: