]> Sergey Matveev's repositories - btrtrc.git/blobdiff - utp_libutp.go
Fix go-libutp import when CGO is disabled
[btrtrc.git] / utp_libutp.go
index 3cbd01c07985713fd1c8e7decae01143335d1048..76e530de940a8b5261c5e1ca0fd92bf0bda698f1 100644 (file)
@@ -16,7 +16,7 @@ func NewUtpSocket(network, addr string, fc firewallCallback) (utpSocket, error)
                return s, err
        }
        if fc != nil {
-               s.SetSyncFirewallCallback(fc)
+               s.SetSyncFirewallCallback(utp.FirewallCallback(fc))
        }
        return s, err
 }