summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/fapi4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fapi b/src/fapi
index f474ba8..1c441bf 100755
--- a/src/fapi
+++ b/src/fapi
@@ -487,8 +487,8 @@ class Fapi(FapiBase):
elif a.sub2 == 'curl':
def curl(f5):
protocol = f5().get_protocol([name])[0]
+ destination = f5().get_destination_v2([name])[0]
if protocol == 'PROTOCOL_TCP':
- destination = f5().get_destination_v2([name])[0]
port = str(destination['port'])
ip = destination['address'].split('/')[-1]
ipport = ip + ':' + port
@@ -500,7 +500,7 @@ class Fapi(FapiBase):
else:
return 'curl -m 3' + headerdump + ' http://' + ipport + failtouch
else:
- return '# ' + protocol + ': Can only curl PROTOCOL_TCP'
+ return '# ' + protocol + ': Can only curl PROTOCOL_TCP. Address: ' + destination['address']
return lambda: curl(f5)
elif a.sub2 == 'status':
return lambda: f5().get_object_status([name])