summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--exports/exports.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/exports/exports.go b/exports/exports.go
index 9378a6e..8f806d7 100644
--- a/exports/exports.go
+++ b/exports/exports.go
@@ -933,6 +933,9 @@ func StartProxyguard(c C.uintptr_t, listen *C.char, tcpsp C.int, peer *C.char, p
}
C.call_proxy_fd(proxyFD, C.int(fd))
}, func() {
+ if proxyReady == nil {
+ return
+ }
C.call_proxy_ready(proxyReady)
})
return getCError(proxyErr)