Fixes bug that mistook gw6 for gw.

Signed-off-by: Frank Yang <yyb196@gmail.com>
This commit is contained in:
Frank Yang 2017-07-31 22:24:44 +08:00
parent a9bbd3b9ff
commit 2cd3a73be6
1 changed files with 1 additions and 1 deletions

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))