PromucFlow_constructor/app/util/is_wsl.sh
Dwayne Forde 51ccd19081
Use IPv4 on WSL machines (#2729)
WSL has issues when handling IPv6 ips. In order to resolve this, on dev machines, we now check if it's a WSL environment. If yes, we default to using IPv4 instead of IPv6.
2021-01-28 12:08:44 +05:30

14 lines
152 B
Bash
Executable File

#!/usr/bin/env bash
IS_WSL=
proc_version="$(cat /proc/version)"
case "$proc_version" in
*icrosoft*)
IS_WSL=true
;;
*WSL*)
IS_WSL=true
;;
esac