Commit graph

23 commits

Author SHA1 Message Date
Alexandre Aubin
45584b44a6 Merge branch 'dev' into bullseye 2021-11-28 16:27:22 +01:00
Alexandre Aubin
6854f23cca [fix] yunomdns: Ignore ipv4 link-local addresses 2021-11-28 02:51:58 +01:00
Alexandre Aubin
467c04f382 codequality: Apply black on python script in bin/ 2021-11-15 04:00:47 +01:00
Alexandre Aubin
391de52ff2 yunomdns: disable ipv6 for now + remove debug stuff 2021-09-29 20:10:00 +02:00
Alexandre Aubin
a5e1d7e318 yunomdns: broadcast on all interfaces with local IP by default + add a 'ban_interfaces' setting in config 2021-09-29 20:02:32 +02:00
Alexandre Aubin
f49666d22e yunomdns: fallback to domain-i.local if domain.local already published 2021-09-29 19:14:21 +02:00
Alexandre Aubin
ab1100048b yunomdns: Minor cleanups 2021-09-29 19:00:05 +02:00
tituspijean
63504febaa
[mdns] refine ipv6 selection with ipaddress lib
Co-authored-by: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= <felix@piedallu.me>
2021-09-26 19:40:46 +02:00
tituspijean
07c381cec4
Use ipaddress lib to find private addresses 2021-09-26 12:05:35 +02:00
tituspijean
a313a86b8b
[mdns] Allow for multiple yunohost.local 2021-09-26 11:44:39 +02:00
tituspijean
358885dc62
[mdns] Avoid miserably failing if another service exists on the network
also, service names do not clash anymore accross same device but different interfaces
2021-09-26 11:41:16 +02:00
d4395f2b4a
Use double-quotes 2021-09-26 11:39:11 +02:00
919ec75877
Revamp of yunomdns :
* Use ifaddr (also used by zeroconf) to find ip addresses
* Use python type hinting
* small cleanups
2021-09-26 11:38:57 +02:00
Alexandre Aubin
7ca637d8f8 yaml.load -> yaml.safe_load 2021-08-12 18:54:20 +02:00
Alexandre Aubin
f1444bc36f mdns: misc fixes for ip parsing 2021-08-12 18:40:43 +02:00
Alexandre Aubin
a2a50d0e45 mdns: Remove argument parsing because we won't really need this ? :Z 2021-08-12 00:09:30 +02:00
tituspijean
f53f36e332 [mdns] Fix yunohost.local broadcast 2021-08-11 17:58:50 +00:00
tituspijean
cad5c39dae [mdns] Remove logging and asyncio dependencies 2021-08-11 16:21:32 +00:00
tituspijean
3535b374ae [mdns] Always broadcast yunohost.local 2021-08-11 16:19:51 +00:00
tituspijean
7c58aa198c Remove asyncio and do not support subdomains 2021-07-27 20:39:38 +00:00
tituspijean
92a1a12226 [mdns] Fix NonUniqueNameException
Service names have to be unique even accross different interfaces
2021-07-11 17:32:33 +00:00
tituspijean
99aacd8b51 Do not rely on Moulinette, integration with Yunohost of mDNS broadcast 2021-07-11 14:24:50 +00:00
tituspijean
9e93efa895 Move mDNS script to yunomdns 2021-07-11 14:17:15 +00:00
Renamed from data/other/mdns.py (Browse further)