File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
# runx: Provide an X server in Cygwin, MSYS2 or WSL.
3
3
4
- Version=" v0.4.1 "
4
+ Version=" v0.4.2 "
5
5
6
6
usage () { # Usage information (--help)
7
7
echo " runx - Run Linux GUI applications on MS Windows.
@@ -326,10 +326,9 @@ check_host() { # Check host environment
326
326
327
327
# Get IP of Windows host
328
328
[ " $Hostip " = " localhost" ] && Hostip=" 127.0.0.1"
329
- [ " $Hostip " ] || Hostip=" $( ipconfig.exe | rmcr | grep -A6 ' DockerNAT' | grep ' IPv4' | grep -o ' [0-9]*\.[0-9]*\.[0-9]*\.[0-9]*' | head -n1 ) "
330
- [ " $Hostip " ] || Hostip=" $( ipconfig.exe | rmcr | grep ' IPv4' | grep -o ' 192\.168\.[0-9]*\.[0-9]*' | head -n1 ) "
331
- [ " $Hostip " ] || Hostip=" $( ipconfig.exe | rmcr | grep ' IPv4' | grep -o ' 10\.0\.[0-9]*\.[0-9]*' | head -n1 ) "
332
- [ " $Hostip " ] || Hostip=" $( ipconfig.exe | rmcr | grep ' IPv4' | grep -o ' [0-9]*\.[0-9]*\.[0-9]*\.[0-9]*' | head -n1 ) "
329
+ [ " $Hostip " ] || Hostip=" $( ipconfig.exe | rmcr | grep ' IPv4' | grep -o ' 192\.168\.[0-9]*\.[0-9]*' | head -n1 ) "
330
+ [ " $Hostip " ] || Hostip=" $( ipconfig.exe | rmcr | grep ' IPv4' | grep -o ' 10\.0\.[0-9]*\.[0-9]*' | head -n1 ) "
331
+ [ " $Hostip " ] || Hostip=" $( ipconfig.exe | rmcr | grep ' IPv4' | grep -o ' [0-9]*\.[0-9]*\.[0-9]*\.[0-9]*' | head -n1 ) "
333
332
334
333
verbose "
335
334
Subsystem: $Winsubsystem
You can’t perform that action at this time.
0 commit comments