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.
14 lines
152 B
Bash
Executable File
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
|