修复freebsd编译时的错误

This commit is contained in:
GoEdgeLab
2021-10-22 15:38:53 +08:00
parent 1015221e90
commit 22ca557691

View File

@@ -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 {