Browse Source

avoid setting failvoer as inet client

abhishek9686 4 tháng trước cách đây
mục cha
commit
e2c7a81797
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      logic/egress.go

+ 1 - 1
logic/egress.go

@@ -99,7 +99,7 @@ func isNodeUsingInternetGw(node *models.Node) {
 	if err != nil {
 		return
 	}
-	if host.IsDefault {
+	if host.IsDefault || node.IsFailOver {
 		return
 	}
 	nodeTags := maps.Clone(node.Tags)