Skip to content

Commit 90bbb09

Browse files
committed
Use AWS to find IP for inlets-pro
In user-data we saw users report that the API we used to find the host's external IP was failing and that caused the service not to come up. Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
1 parent a66c9d4 commit 90bbb09

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

controller.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,8 @@ curl -sLO https://raw.githubusercontent.com/inlets/inlets/master/hack/inlets-ope
977977
return `#!/bin/bash
978978
export AUTHTOKEN="` + authToken + `"
979979
export REMOTETCP="` + remoteTCP + `"
980-
export IP=$(curl -sfSL https://api.ipify.org)
980+
export IP=$(curl -sfSL https://checkip.amazonaws.com)
981+
981982
curl -SLsf https://github.com/inlets/inlets-pro/releases/download/0.4.3/inlets-pro > /tmp/inlets-pro && \
982983
chmod +x /tmp/inlets-pro && \
983984
mv /tmp/inlets-pro /usr/local/bin/inlets-pro

0 commit comments

Comments
 (0)