summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow (lxpbuetow.webde.local) <paul.buetow@1und1.de>2014-07-14 14:44:57 +0200
committerPaul Buetow (lxpbuetow.webde.local) <paul.buetow@1und1.de>2014-07-14 14:44:57 +0200
commit976ab6520f085d7ca3095d637b93439a1a8e1739 (patch)
tree0ebad6c03b9c8b63e3b138d1d38b796db05f9cff
parent6e0c6654c75d808ed4bf0e74a038854ea8232915 (diff)
fix
-rwxr-xr-xsrc/fapi6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fapi b/src/fapi
index 746f195..f6a23ba 100755
--- a/src/fapi
+++ b/src/fapi
@@ -491,12 +491,12 @@ class Fapi(FapiBase):
destination = f5().get_destination_v2([name])[0]
port = str(destination['port'])
ip = destination['address'].split('/')[-1]
- headerdump = ip + '-header.txt'
+ headerdump = ip + ':' + port + '-header.txt'
m = re.match('.*43$', port)
if m:
- return 'curl -D ' + headerdump + ' -k https://' + ip
+ return 'curl -m 3 -D ' + headerdump + ' -k https://' + ip
else:
- return 'curl -D ' + headerdump + ' http://' + ip
+ return 'curl -m 3 -D ' + headerdump + ' http://' + ip
else:
return protocol + ': Can only curl PROTOCOL_TCP'
return lambda: curl(f5)