From 1677ffe64815e70376fe9afcffb683161025f05d Mon Sep 17 00:00:00 2001 From: toxa Date: Fri, 7 Jun 2024 14:54:05 +0300 Subject: [PATCH] + change ip for host.docker.internal to localhost on windows hosts file (example for correctly working vite_dev server both from host browser and docker browserless browser) --- bash/change-hosts-on-windows.sh | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 bash/change-hosts-on-windows.sh diff --git a/bash/change-hosts-on-windows.sh b/bash/change-hosts-on-windows.sh new file mode 100644 index 0000000..72d068e --- /dev/null +++ b/bash/change-hosts-on-windows.sh @@ -0,0 +1,2 @@ +#!/bin/bash +sed -i 's/.* host.docker.internal/127.0.0.1 host.docker.internal/' /c/Windows/System32/drivers/etc/hosts \ No newline at end of file