mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-07 13:03:45 +02:00
Build fix for Go 1.15
This commit is contained in:
parent
72114e4cf8
commit
896656115f
1 changed files with 3 additions and 3 deletions
|
@ -780,7 +780,7 @@ func (n *Node) handleTrace(traceMessage string) {
|
||||||
// avoid blocking anything in the core.
|
// avoid blocking anything in the core.
|
||||||
|
|
||||||
//export goPathCheckFunc
|
//export goPathCheckFunc
|
||||||
func goPathCheckFunc(gn, _ unsafe.Pointer, af C.int, ip unsafe.Pointer, _ C.int) C.int {
|
func goPathCheckFunc(gn, uptr unsafe.Pointer, af C.int, ip unsafe.Pointer, port C.int) C.int {
|
||||||
node := cNodeRefs[uintptr(gn)]
|
node := cNodeRefs[uintptr(gn)]
|
||||||
if node == nil {
|
if node == nil {
|
||||||
return 0
|
return 0
|
||||||
|
@ -802,7 +802,7 @@ func goPathCheckFunc(gn, _ unsafe.Pointer, af C.int, ip unsafe.Pointer, _ C.int)
|
||||||
}
|
}
|
||||||
|
|
||||||
//export goPathLookupFunc
|
//export goPathLookupFunc
|
||||||
func goPathLookupFunc(gn unsafe.Pointer, _ C.uint64_t, _ int, identity, familyP, ipP, portP unsafe.Pointer) C.int {
|
func goPathLookupFunc(gn unsafe.Pointer, ztAddress C.uint64_t, desiredAddressFamily int, identity, familyP, ipP, portP unsafe.Pointer) C.int {
|
||||||
node := cNodeRefs[uintptr(gn)]
|
node := cNodeRefs[uintptr(gn)]
|
||||||
if node == nil {
|
if node == nil {
|
||||||
return 0
|
return 0
|
||||||
|
@ -877,7 +877,7 @@ func goStateObjectGetFunc(gn unsafe.Pointer, objType C.int, id, dataP unsafe.Poi
|
||||||
}
|
}
|
||||||
|
|
||||||
//export goVirtualNetworkConfigFunc
|
//export goVirtualNetworkConfigFunc
|
||||||
func goVirtualNetworkConfigFunc(gn, _ unsafe.Pointer, nwid C.uint64_t, op C.int, conf unsafe.Pointer) {
|
func goVirtualNetworkConfigFunc(gn, uptr unsafe.Pointer, nwid C.uint64_t, op C.int, conf unsafe.Pointer) {
|
||||||
node := cNodeRefs[uintptr(gn)]
|
node := cNodeRefs[uintptr(gn)]
|
||||||
if node == nil {
|
if node == nil {
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Reference in a new issue