-
Notifications
You must be signed in to change notification settings - Fork 230
Add support for AWDL interface on macOS #207
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
Conversation
@jstasiak not sure why build for pypy3.5 fails. My changes should not have any effects by default. |
Hey, thanks for the patch, it's actually shorter than I expected after a quick look some time ago, nice!
One or two of the tests fail intermittently on PyPy for some reason, yet to be figured out. Regarding the patch – I'm wondering about the API. Wouldn't it be better if we got rid of the |
Regarding the API: enabling AWDL automatically is a security risk. Services could get unintentionally advertised over AWDL which is an unauthenticated interface and anybody within range could overhear the announcements. I believe this is the reason why Apple implements its API like this. That's why I would want to keep the flag. What we could do, however, is automatically set Regarding the platform check: |
This is what I had in mind, I should've been more explicit, sorry. I'd only enable it by default if the client code explicitly selects that one interface.
Agreed. The way I'd expect it to work:
Is this tenable security-wise? |
Alternatively maybe let's stick to the explicit way of enabling this (I'm kind of leaning this way, but I'll leave the decision to you):
|
I also like the explicit way better. So, let's stick with that. Unfortunately, it is currently not possible to set @jstasiak have you figured out the pypy3.5 problem? |
It usually just goes away when another build is triggered, someone needs to investigate it further to get to the bottom of it – restarting CI is a workaround for now. As to setting |
The API is inspired by Apple's NetService.includesPeerToPeer (see https://developer.apple.com/documentation/foundation/netservice/1414086-includespeertopeer)
Edit: This whole comment is wrong. Ignore. :>
|
Ugh, sorry, I actually made myself believe the above – I renamed the variable locally while debugging and forgot about it. Ignore me. |
The API is inspired by Apple's NetService.includesPeerToPeer
(see https://developer.apple.com/documentation/foundation/netservice/1414086-includespeertopeer)