Переглянути джерело

Merge pull request #9991 from littleidea/delete_redundant_macaddress

remove redundant 'Get' for MacAddress
Jessie Frazelle 10 роки тому
батько
коміт
a83e904611
1 змінених файлів з 0 додано та 1 видалено
  1. 0 1
      daemon/container.go

+ 0 - 1
daemon/container.go

@@ -544,7 +544,6 @@ func (container *Container) AllocateNetwork() error {
 	container.NetworkSettings.IPPrefixLen = env.GetInt("IPPrefixLen")
 	container.NetworkSettings.MacAddress = env.Get("MacAddress")
 	container.NetworkSettings.Gateway = env.Get("Gateway")
-	container.NetworkSettings.MacAddress = env.Get("MacAddress")
 	container.NetworkSettings.LinkLocalIPv6Address = env.Get("LinkLocalIPv6")
 	container.NetworkSettings.LinkLocalIPv6PrefixLen = 64
 	container.NetworkSettings.GlobalIPv6Address = env.Get("GlobalIPv6")