From 5e9fc16cac334a66aa726352ada35b94be46255f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Wed, 13 Nov 2019 13:05:35 +0100 Subject: [PATCH] Bind challenge container port to localhost only --- hack/libhack/challenge.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hack/libhack/challenge.sh b/hack/libhack/challenge.sh index f65f7ee..e602688 100644 --- a/hack/libhack/challenge.sh +++ b/hack/libhack/challenge.sh @@ -44,9 +44,9 @@ challenge::run() { mount_volumes="${mount_baseimage:-} ${mount_challenge}" fi popd - docker run --rm \ - -p ${CHALLENGE_PORT}:${CHALLENGE_PORT} \ - ${mount_volumes:-} \ - ${@:-} \ + docker run --rm \ + -p 127.0.0.1:${CHALLENGE_PORT}:${CHALLENGE_PORT} \ + ${mount_volumes:-} \ + ${@:-} \ -e AVATAO_SECRET="${AVATAO_SECRET}" ${IMAGE_NAME} }