From 4dcd47d8bca9ba7b1645167dec780d6b61ea868a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Fri, 22 Oct 2021 15:38:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dfreebsd=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E6=97=B6=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/utils/net.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/utils/net.go b/internal/utils/net.go index 9486889..0d1fd0e 100644 --- a/internal/utils/net.go +++ b/internal/utils/net.go @@ -1,3 +1,6 @@ +//go:build !freebsd +// +build !freebsd + package utils import ( @@ -7,7 +10,7 @@ import ( "syscall" ) -// 监听可重用的端口 +// ListenReuseAddr 监听可重用的端口 func ListenReuseAddr(network string, addr string) (net.Listener, error) { config := &net.ListenConfig{ Control: func(network, address string, c syscall.RawConn) error {