Bug 414324

Summary: IPv6 address has enclosing [] stripped before passing to xfreerdp
Product: [Applications] krdc Reporter: JG <gerdesj>
Component: RDPAssignee: Urs Wolfer <uwolfer>
Status: RESOLVED FIXED    
Severity: normal CC: ctrlaltca, gerdesj
Priority: NOR    
Version First Reported In: 19.08.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 23.12
Sentry Crash Report:

Description JG 2019-11-20 11:26:36 UTC
In KRDC a connections string like this: DOMAIN\username@[2001:db8::1] generates a commandline like this:

/bin/xfreerdp -decorations /w:1920 /h:1080 /kbd:0x00000809 /d:DOMAIN /u:username /parent-window:29363239 /bpp:24 /audio-mode:0 /sound:sys:alsa /drive:media,/home/DOMAIN/username /network:lan /rfx +auto-reconnect /cert-ignore +clipboard /port:3389 /v:2001:db8::1 /p:************

Note the lack of [] 

If I take the above command and add the [] around the IPv6 address after /v: and remove the /parent-window parameter then xfreerdp works fine.

(Arch Linux, krdc 19.08.3, This is FreeRDP version 2.0.0-dev5)