From f7774e4d546c30ec5f05b13d8cba440a1a6473b8 Mon Sep 17 00:00:00 2001
From: Olivier Benz <olivier.benz@b-data.ch>
Date: Mon, 27 Jan 2025 18:03:29 +0100
Subject: [PATCH] Do not override singleuser ip to 0.0.0.0

- JupyterHub singleuser arguments are set using environment variables
- https://github.com/jupyter/docker-stacks/pull/2203
---
 base/scripts/usr/local/bin/start-singleuser.sh | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/base/scripts/usr/local/bin/start-singleuser.sh b/base/scripts/usr/local/bin/start-singleuser.sh
index 8d5ad1d..3fd42bf 100755
--- a/base/scripts/usr/local/bin/start-singleuser.sh
+++ b/base/scripts/usr/local/bin/start-singleuser.sh
@@ -4,10 +4,7 @@
 
 set -e
 
-# set default ip to 0.0.0.0
-if [[ "${NOTEBOOK_ARGS} $*" != *"--ip="* ]]; then
-    NOTEBOOK_ARGS="--ip=0.0.0.0 ${NOTEBOOK_ARGS}"
-fi
+# JupyterHub singleuser arguments are set using environment variables
 
 echo "Executing: jupyterhub-singleuser" "${NOTEBOOK_ARGS}" "$@"
 # shellcheck disable=SC1091,SC2086
-- 
GitLab