1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #1868 from yyb196/fix-error-in-restore-ep

Fixes bug that mistook gw6 for gw.
This commit is contained in:
Madhu Venugopal 2017-07-31 17:09:22 -07:00 committed by GitHub
commit c20c075e20

View file

@ -413,7 +413,7 @@ func (epj *endpointJoinInfo) UnmarshalJSON(b []byte) error {
return err
}
if v, ok := epMap["gw"]; ok {
epj.gw6 = net.ParseIP(v.(string))
epj.gw = net.ParseIP(v.(string))
}
if v, ok := epMap["gw6"]; ok {
epj.gw6 = net.ParseIP(v.(string))