summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow (lxpbuetow.webde.local) <paul.buetow@1und1.de>2014-07-14 15:03:40 +0200
committerPaul Buetow (lxpbuetow.webde.local) <paul.buetow@1und1.de>2014-07-14 15:03:40 +0200
commit13bbc2b0440cfc9a475b00013bc8b054b234c21b (patch)
treef53c5df1ff31bbd5ba8b923d4635980ba281a186
parent976ab6520f085d7ca3095d637b93439a1a8e1739 (diff)
You will triumph over your enemy.
-rwxr-xr-xsrc/fapi8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/fapi b/src/fapi
index f6a23ba..707655a 100755
--- a/src/fapi
+++ b/src/fapi
@@ -491,12 +491,14 @@ class Fapi(FapiBase):
destination = f5().get_destination_v2([name])[0]
port = str(destination['port'])
ip = destination['address'].split('/')[-1]
- headerdump = ip + ':' + port + '-header.txt'
+ filename = ip + ':' + port
+ failtouch = ' || touch ' + filename + '.failed'
+ headerdump = ' -D ' + filename + '.heaer'
m = re.match('.*43$', port)
if m:
- return 'curl -m 3 -D ' + headerdump + ' -k https://' + ip
+ return 'curl -m 3' + headerdump + ' -k https://' + ip + failtouch
else:
- return 'curl -m 3 -D ' + headerdump + ' http://' + ip
+ return 'curl -m 3' + headerdump + ' http://' + ip + failtouch
else:
return protocol + ': Can only curl PROTOCOL_TCP'
return lambda: curl(f5)