Open kerokerowood opened 2 years ago
Hi. Sorry for late response. Thanks for reporting.
Maybe your fix is correct and I will merge this fix after I check why calling netif_set_down
is required by digging the lwIP code.
@ciniml san, no problem. Currently I'm using local fix and don't have any critical issues. Thank you for checking my comment and I am very grad to help you out.
Hi, I'm enjoying WireGuard-ESP32@^0.1.5 and thanks for this great library for ESP32. I'm using this library in the following environment:
What I am doing is 1) start everything for WireGuard communication, 2) do something thru the tunnel, and 3) stop everything in every cycle in the loop.
The issue is unexpected reboot in void WireGuard::end(). In some cases it happened at every call but in other case at not every call. I could not find any dependencies for these differences. Temporary fix I found in the end is to add net_set_down() just before the netif_remove(). Currently this removes the issue for all the cases I had.
I'm not sure if it is a correct way or not. So, I would be grateful if you could kindly give me advice about this issue.