-
-
Notifications
You must be signed in to change notification settings - Fork 251
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
wireguard: not all peers are returned in info when over a certain number of peers #1212
Comments
After some more investigation, it seems that it is indeed related to pyroute2 wireguard implementation as with wireguard-py it does not happen. Here is an updated version of the test that compares results from pyroute2 and wireguard-py:
This is what I get with this comparison test:
|
Hey @cmoiccool, the problem seems to be in your code for getting the peer info. def get_peers(wg, ifname):
info = wg.info(ifname)
print(f"Info len: {len(info)}")
return [ peer
for sub_info in info
for peer in sub_info.get('WGDEVICE_A_PEERS')
] Best wishes |
Hi,
When adding a certain number of peers to a wireguard interface (20 on some unbuntu servers, 26 on others for example) the returned informations for the interface gets incomplete returning only the first peers.
You can check running this test:
And this is what happens:
Any idea why this happens and how to solve it ?
Thanks for your help!
The text was updated successfully, but these errors were encountered: