Migration: go 1.18

This commit is contained in:
xjasonlyu
2022-03-29 13:38:50 +08:00
parent 8bb8423e50
commit d3fc3abbb7
13 changed files with 73 additions and 53 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ func addControl(f controlFunc) {
_controlPool = append(_controlPool, f)
}
func setControl(i interface{}) {
func setControl(i any) {
control := func(address, network string, c syscall.RawConn) error {
for _, f := range _controlPool {
if err := f(address, network, c); err != nil {