Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit 838ec95

Browse files
authored
fix(vscode-web): use --host 127.0.01 (#216)
MS code-server defaults to using `--host localhost`, which was working perfectly fine with Coder. But recently Coder is failing to proxy vscode-web with the coder/coder#12790 As a workaround setting `--host 127.0.0.1` works.
1 parent 5a0efdf commit 838ec95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vscode-web/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ if [ ! -f ~/.vscode-server/data/Machine/settings.json ]; then
5151
echo "${SETTINGS}" > ~/.vscode-server/data/Machine/settings.json
5252
fi
5353

54-
echo "👷 Running ${INSTALL_PREFIX}/bin/code-server serve-local --port ${PORT} --accept-server-license-terms serve-local --without-connection-token --telemetry-level ${TELEMETRY_LEVEL} in the background..."
54+
echo "👷 Running ${INSTALL_PREFIX}/bin/code-server serve-local --port ${PORT} --host 127.0.0.1 --accept-server-license-terms serve-local --without-connection-token --telemetry-level ${TELEMETRY_LEVEL} in the background..."
5555
echo "Check logs at ${LOG_PATH}!"
56-
"${INSTALL_PREFIX}/bin/code-server" serve-local --port "${PORT}" --accept-server-license-terms serve-local --without-connection-token --telemetry-level "${TELEMETRY_LEVEL}" > "${LOG_PATH}" 2>&1 &
56+
"${INSTALL_PREFIX}/bin/code-server" serve-local --port "${PORT}" --host 127.0.0.1 --accept-server-license-terms serve-local --without-connection-token --telemetry-level "${TELEMETRY_LEVEL}" > "${LOG_PATH}" 2>&1 &

0 commit comments

Comments
 (0)