]> git.ipfire.org Git - thirdparty/wireguard-go.git/commit
Fixed port overwrite issue on kernels without ipv6
authorMathias Hall-Andersen <mathias@hall-andersen.dk>
Sun, 16 Sep 2018 13:05:08 +0000 (15:05 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Sun, 16 Sep 2018 16:49:19 +0000 (18:49 +0200)
commit32d2148835d28f5927daee2d1206c88ac343cfb3
tree37ce4a7731b0a305f0c9b4b006d5f614d9dfe194
parent5be541d147562bf87f6a9ebd551412d4a6920b4b
Fixed port overwrite issue on kernels without ipv6

Fixed an issue in CreateBind for Linux:
If ipv6 was not supported the error code would be
correctly identified as EAFNOSUPPORT and ipv4 binding attempted.
However the port would be set to 0,
which results in the subsequent create4 call requesting
a random port rather than the one provided to CreateBind.

This issue was identified by:
Kent Friis <leeloored@gmx.com>
conn_linux.go