git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #23409 from florianjacob/avahi-point-to-point-interfaces

avahi-daemon service: Add option to enable point-to-point interfaces.

commit67d735e8dfeeecc3b4b42ea703c94e8012e0af68 authorPeter Simons <simons@cryp.to> dateFri 7 Apr 2017, 12:35 (10 years ago) parenta0d5916518e5c0
1 file changed+10
nixos/modules/services/networking/avahi-daemon.nix+10
nixos/modules/services/networking/avahi-daemon.nix+10
@@ -21,6 +21,7 @@ let
2121 use-ipv6=${if ipv6 then "yes" else "no"}
2222 ${optionalString (interfaces!=null) "allow-interfaces=${concatStringsSep "," interfaces}"}
2323 ${optionalString (domainName!=null) "domain-name=${domainName}"}
24+ allow-point-to-point=${if allowPointToPoint then "yes" else "no"}
2425
2526 [wide-area]
2627 enable-wide-area=${if wideArea then "yes" else "no"}
@@ -98,6 +99,15 @@ in
9899 '';
99100 };
100101
102+ allowPointToPoint = mkOption {
103+ default = false;
104+ description= ''
105+ Whether to use POINTTOPOINT interfaces. Might make mDNS unreliable due to usually large
106+ latencies with such links and opens a potential security hole by allowing mDNS access from Internet
107+ connections. Use with care and YMMV!
108+ '';
109+ };
110+
101111 wideArea = mkOption {
102112 default = true;
103113 description = ''Whether to enable wide-area service discovery.'';