Skip to content

Commit

Permalink
macosx: do not use localhost.. (issue #3)
Browse files Browse the repository at this point in the history
  • Loading branch information
pauleve committed Sep 8, 2017
1 parent d9b7763 commit cc6ac89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion run-mtgo
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ opts="${opts} -v ${data}:/home/wine/.wine/drive_c/users/"

opts="${opts} -v /tmp/.X11-unix:/tmp/.X11-unix:rw"
if [[ ${OSTYPE} == darwin* ]]; then
ip=127.0.0.1
iface=en0
ip=$(ifconfig $iface | grep inet | awk '$1=="inet" {print $2}')
run open -a XQuartz
run xhost + ${ip}
run socat TCP4-LISTEN:6000,bind=$ip,range=$ip/32,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\" &
Expand Down

0 comments on commit cc6ac89

Please sign in to comment.