From e7840ebea67c60be773d64575582738ddbd9e67f Mon Sep 17 00:00:00 2001 From: haemka Date: Fri, 20 Aug 2021 20:37:47 +0200 Subject: [PATCH] Fixed remote office script --- remoteoffice.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/remoteoffice.sh b/remoteoffice.sh index 09ad4c2..912a86f 100755 --- a/remoteoffice.sh +++ b/remoteoffice.sh @@ -1,5 +1,7 @@ #!/bin/sh +set -x + # VPN NMCONN="49088a1e-18c2-48aa-a664-f212eb83a727" # RDP @@ -10,6 +12,8 @@ USER="$(pass show Work/AD-LOGIN | awk '/user:/ {print $2}')" REMOTE="$(pass show Work/AD-LOGIN | awk '/remote:/ {print $2}')" rdp() { + # resolve REMOTE to IPv4 before connecting in order to avoid IPv6 usage + REMOTE=$(dig ${REMOTE} A +short) # alternative to "dynamic-resolution" is "smart-sizing" xfreerdp /network:lan /gdi:hw +glyph-cache +fonts +aero \ /bpp:32 /size:${DEF_RESOLUTION} /dynamic-resolution \