Copy compression setting while introducing

This commit is contained in:
Audrius Butkevicius 2014-12-07 22:43:30 +00:00
parent 1392cfc72d
commit b00264b594

View File

@ -576,7 +576,7 @@ func (m *Model) ClusterConfig(deviceID protocol.DeviceID, cm protocol.ClusterCon
l.Infof("Adding device %v to config (vouched for by introducer %v)", id, deviceID) l.Infof("Adding device %v to config (vouched for by introducer %v)", id, deviceID)
newDeviceCfg := config.DeviceConfiguration{ newDeviceCfg := config.DeviceConfiguration{
DeviceID: id, DeviceID: id,
Compression: true, Compression: m.cfg.Devices()[deviceID].Compression,
Addresses: []string{"dynamic"}, Addresses: []string{"dynamic"},
} }