Skip to content

Commit 6ec8e45

Browse files
author
Flavio Crisciani
authored
Merge pull request #2272 from johnstep/transparent-network-resiliency
Do not fail with an empty transparent IPv4 address
2 parents 854aff3 + 29f2842 commit 6ec8e45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/windows/windows_store.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ func (ep *hnsEndpoint) UnmarshalJSON(b []byte) error {
261261
}
262262
if v, ok := epMap["Addr"]; ok {
263263
if ep.addr, err = types.ParseCIDR(v.(string)); err != nil {
264-
return types.InternalErrorf("failed to decode endpoint IPv4 address (%s) after json unmarshal: %v", v.(string), err)
264+
logrus.Warnf("failed to decode endpoint IPv4 address (%s) after json unmarshal: %v", v.(string), err)
265265
}
266266
}
267267
if v, ok := epMap["gateway"]; ok {

0 commit comments

Comments
 (0)