File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -90,8 +90,8 @@ ready_probe_with_no_tls()
9090{
9191 local webserver_port=$( parse_config_file_with_key " webserver_port" )
9292 webserver_port=${webserver_port:= $DEFAULT_WEBSERVER_PORT }
93- local ip =` hostname -i | awk ' {print $1} ' `
94- local url=" http://${ip } :${webserver_port} /api/health"
93+ local host =` hostname -f `
94+ local url=" http://${host } :${webserver_port} /api/health"
9595
9696 local response=$( curl -s -w " \n%{http_code}" $url )
9797 local http_code=$( echo " $response " | tail -n1)
Original file line number Diff line number Diff line change @@ -54,8 +54,8 @@ ready_probe_with_no_tls()
5454{
5555 local http_port=$( parse_config_file_with_key " http_port" )
5656 http_port=${http_port:= $DEFAULT_HTTP_PORT }
57- local ip =` hostname -i | awk ' {print $1} ' `
58- local url=" http://${ip } :${http_port} /api/health"
57+ local host =` hostname -f `
58+ local url=" http://${host } :${http_port} /api/health"
5959
6060 local response=$( curl -s -w " \n%{http_code}" $url )
6161 local http_code=$( echo " $response " | tail -n1)
You can’t perform that action at this time.
0 commit comments