From c576fca5b728f54fca2ea83d4c216e1069fb3395 Mon Sep 17 00:00:00 2001 From: e1732a364fed <75717694+e1732a364fed@users.noreply.github.com> Date: Sat, 1 Jan 2000 00:00:00 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=81=97=E6=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- netLayer/sockopt_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netLayer/sockopt_windows.go b/netLayer/sockopt_windows.go index 1be4c6d..ed85d7d 100644 --- a/netLayer/sockopt_windows.go +++ b/netLayer/sockopt_windows.go @@ -11,7 +11,7 @@ import ( // SetSockOpt 是平台相关的. func SetSockOpt(fd int, sockopt *Sockopt, isudp bool, isipv6 bool) { if sockopt.Device != "" { - bindToDevice(fd, sockopt.Device) + bindToDevice(fd, sockopt.Device, isipv6) } }