-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Just a feedback! #2
Comments
Спасибо, за обратную связь. Попробую разобраться как будет время. Гуй клиент тут https://github.com/Vai3soh/goovpn |
@Vai3soh а вы не ловите местами сегфолтов, случайно? Есть подозрение, что openvpn3 использует thread-local storage и вызовы плюсовых методов из разных тредов иногда её крашат. |
Я пользуюсь переодически гуй клиентом (goovpn) и не замечал чтобы он крашился. |
@Vai3soh спасибо за фидбек, пока думается, что openvpn3 не совсем ожидает запросов к себе из разных тредов. |
A very good example of using OpenVPN3 with Golang!
But I wanted to highlight that you could use swig natively with Golang:
just take
ovpncli.i
fromopenvpn3
repo and rename it toovpncli.swigcxx
. Then create newovpncli.go
file and just add cgo comments with cppflags and ldflags. Then Golang should automatically callswig
to generate bindings and compile at the same time. You won't need to patch generated files in this case.Also I would reuse headers from submodule you already created by passing
-I${SRCDIR}/third_party/openvpn3 -I${SRCDIR}/third_party/openvpn3/client
incgo LDFLAGS
.And finally I would manually add new vector to newly copied
ovpncli.swigcxx
:In that case you would able to configure OpenVPNClient with key-value entries, not only with entire text config, much usable to build GUI client.
The text was updated successfully, but these errors were encountered: