فهرست منبع

Merge pull request #536 from mrjana/bugs

Fix unmarshal error in endpoint interface
Madhu Venugopal 9 سال پیش
والد
کامیت
cdd2ba4ea4
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      libnetwork/endpoint.go

+ 1 - 1
libnetwork/endpoint.go

@@ -87,7 +87,7 @@ func (ep *endpoint) UnmarshalJSON(b []byte) (err error) {
 	ep.id = epMap["id"].(string)
 
 	ib, _ := json.Marshal(epMap["ep_iface"])
-	json.Unmarshal(ib, ep.iface)
+	json.Unmarshal(ib, &ep.iface)
 
 	tb, _ := json.Marshal(epMap["exposed_ports"])
 	var tPorts []types.TransportPort