Fix some config Copy() things we had forgotten

This commit is contained in:
Jakob Borg
2015-10-27 11:53:42 +01:00
parent 724c1e297f
commit 679f0f9363
3 changed files with 14 additions and 0 deletions

View File

@@ -49,5 +49,9 @@ func (orig OptionsConfiguration) Copy() OptionsConfiguration {
copy(c.ListenAddress, orig.ListenAddress)
c.GlobalAnnServers = make([]string, len(orig.GlobalAnnServers))
copy(c.GlobalAnnServers, orig.GlobalAnnServers)
c.RelayServers = make([]string, len(orig.RelayServers))
copy(c.RelayServers, orig.RelayServers)
c.AlwaysLocalNets = make([]string, len(orig.AlwaysLocalNets))
copy(c.AlwaysLocalNets, orig.AlwaysLocalNets)
return c
}