- out << " access-control: 0.0.0.0/0 refuse"
- out << " access-control: ::0/0 refuse"
- out << " access-control: 127.0.0.0/8 allow"
- out << " access-control: ::0/0 refuse"
- out << " access-control: ::1 allow"
- out << " access-control: ::ffff:127.0.0.1 allow"
- nodeinfo['hoster']['allow_dns_query'].each do |net|
- out << " access-control: #{net} allow"
- end
- end
- out.join("\n")
-%>
+ interface-automatic: yes
+
+ access-control: 0.0.0.0/0 refuse
+ access-control: ::0/0 refuse
+ access-control: 127.0.0.0/8 allow
+ access-control: ::0/0 refuse
+ access-control: ::1 allow
+ access-control: ::ffff:127.0.0.1 allow
+<% @client_ranges.to_a.flatten.each do |net| -%>
+ access-control: <%= net -%> allow
+<% end -%>
+<% end -%>