]> Cypherpunks repositories - gostls13.git/commit
net: add support for dialing from a custom local address on Plan 9
authorFazlul Shahriar <fshahriar@gmail.com>
Thu, 25 Jun 2020 23:41:13 +0000 (19:41 -0400)
committerDavid du Colombier <0intro@gmail.com>
Mon, 29 Jun 2020 08:06:32 +0000 (08:06 +0000)
commit152ffca82fa53008bd2872f7163c7a1885da880e
tree4aafdee8b976429b3f24ccba8b1e2bd65aef1eb0
parenta980e8a690f59542e6e68aa4d84face19ee57a15
net: add support for dialing from a custom local address on Plan 9

Make use of the extra parameter on "connect" control message to set the
local IP address and port. The ip(3) man page doesn't document that the
local IP address is settable, but upon inspection of the source code,
it's clearly settable.

Fixes #39747

Change-Id: Ied3d60452f20d6e5af23d1c1dcb34774af0dbd5b
Reviewed-on: https://go-review.googlesource.com/c/go/+/240064
Run-TryBot: David du Colombier <0intro@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David du Colombier <0intro@gmail.com>
src/net/ipsock_plan9.go