I think need fix get_local_ip() function.
bongdang opened this issue · comments
bongdang commented
Hi.
get_local_ip function in network.py doing some wired action.
Connecting to "(10.255.255.255", 1) generate exception in my env. How about change to ("8.8.8.8", 1)?
My env ls 10.X.X.X private IP networks.
Thanks.
Reproduction
A minimal example that exhibits the behavior.
Environment
Any additional information about your environment
J. Nick Koston commented
Fixed via #26
bongdang commented
Still got Exception.
>> s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
>> s.setblocking(False)
>> s.connect(('10.255.255.255',1))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
PermissionError: [Errno 13] Permission denied
as above.
2022년 4월 18일 (월) 오전 11:26, J. Nick Koston ***@***.***>님이 작성:
… Fixed via #26 <#26>
—
Reply to this email directly, view it on GitHub
<#25 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWWMSMBQXULYSTUGY5TLPITVFTB6VANCNFSM5S3RSFAQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
J. Nick Koston commented
bongdang commented
Sorry. I didn't view all source. ;)
Thank you for your job. I think it's better.
Have a nice day!
2022년 4월 18일 (월) 오후 4:54, J. Nick Koston ***@***.***>님이 작성:
… Please see
https://github.com/bdraco/aiodiscover/blob/main/aiodiscover/network.py#L162
—
Reply to this email directly, view it on GitHub
<#25 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWWMSMAY5S5NTVPTNOZNM63VFUIJVANCNFSM5S3RSFAQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>