Skip to content

Commit e329ddb

Browse files
committed
Store all parsed data into configuration
Currently much of this data is lost, but a dnsmasq-specific DHCP subnet class would solve that issue
1 parent b42eeac commit e329ddb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/smart_proxy_dhcp_dnsmasq/dhcp_dnsmasq_subnet_service.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ def parse_config_for_subnets
129129
data.merge! \
130130
interface: subnet_iface ? subnet_iface.name : nil,
131131
address: IPAddr.new("#{start_addr}/#{mask}").to_s,
132+
broadcast: broadcast,
132133
mask: mask,
134+
mode: mode,
133135
range: [start_addr.to_s, end_addr].compact,
134136
ttl: ttl
135137

@@ -167,7 +169,7 @@ def parse_config_for_subnets
167169
end
168170

169171
configuration.each do |id, data|
170-
logger.debug "Adding subnet #{id} with configuration; #{data}"
172+
logger.debug "Parsed subnet #{id} (#{data[:address]}) with configuration; #{data}"
171173
subnets << ::Proxy::DHCP::Subnet.new(data[:address], data[:mask], data[:options])
172174
end
173175

0 commit comments

Comments
 (0)