Skip to content

Commit

Permalink
Fix: multi network interface need add a router
Browse files Browse the repository at this point in the history
Close #28
  • Loading branch information
cuisongliu committed Jun 28, 2022
1 parent 2a5e59d commit e92ae37
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions care/care.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,8 @@ func SetTargetIP() error {
if LVS.TargetIP == nil {
LVS.TargetIP = net.ParseIP(os.Getenv("LVSCARE_NODE_IP"))
}
if LVS.TargetIP == nil {
return errors.New("target ip can't empty")
}
return nil
}

0 comments on commit e92ae37

Please sign in to comment.