Skip to content

Commit

Permalink
avahi-daemon service: Add option to enable point-to-point interfaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
florianjacob committed Mar 2, 2017
1 parent 1254f1a commit 518e5c0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions nixos/modules/services/networking/avahi-daemon.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ let
use-ipv6=${if ipv6 then "yes" else "no"}
${optionalString (interfaces!=null) "allow-interfaces=${concatStringsSep "," interfaces}"}
${optionalString (domainName!=null) "domain-name=${domainName}"}
allow-point-to-point=${if allowPointToPoint then "yes" else "no"}
[wide-area]
enable-wide-area=${if wideArea then "yes" else "no"}
Expand Down Expand Up @@ -98,6 +99,15 @@ in
'';
};

allowPointToPoint = mkOption {
default = false;
description= ''
Whether to use POINTTOPOINT interfaces. Might make mDNS unreliable due to usually large
latencies with such links and opens a potential security hole by allowing mDNS access from Internet
connections. Use with care and YMMV!
'';
};

wideArea = mkOption {
default = true;
description = ''Whether to enable wide-area service discovery.'';
Expand Down

0 comments on commit 518e5c0

Please sign in to comment.