Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e0ecb42

Browse files
WSL2 - Use host.docker.internal hostname instead of IP
1 parent 5d73881 commit e0ecb42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎console/tasks/set_xdebug_host_property.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if [ "${MACHINE}" == "linux" ]; then
66
if grep -q Microsoft /proc/version; then # WSL
77
XDEBUG_HOST=10.0.75.1
88
elif grep -q microsoft-standard /proc/version; then #WSL2
9-
XDEBUG_HOST=$(awk '/nameserver / {print 2ドル; exit}' /etc/resolv.conf)
9+
XDEBUG_HOST=host.docker.internal
1010
else
1111
if [ "$(command -v ip)" ]; then
1212
XDEBUG_HOST=$(ip addr show docker0 | grep "inet\b" | awk '{print 2ドル}' | cut -d/ -f1)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /