diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-02-22 20:32:28 +0100 |
|---|---|---|
| committer | Jeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com> | 2024-02-23 10:40:50 +0100 |
| commit | 174384dfd7457aea1c562b65548f0e5c59b687c5 (patch) | |
| tree | ea02d4c3652d610fcf4a26f28790c6852f9259ab /exports | |
| parent | f3ec2e1710c0bd616f6a1b00dcbdf29d3681107d (diff) | |
Exports: Nil check proxyReady in StartProxyguard
Diffstat (limited to 'exports')
| -rw-r--r-- | exports/exports.go | 3 |
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) |
