@@ -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.'';