mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-05 08:47:35 +08:00
extclients internal ips
This commit is contained in:
@@ -185,12 +185,12 @@ func CreateIngressGateway(netid string, nodeid string, failover bool) (models.No
|
||||
|
||||
var postUpCmd, postDownCmd string
|
||||
node, err := GetNodeByID(nodeid)
|
||||
if node.OS != "linux" { // add in darwin later
|
||||
return models.Node{}, errors.New(node.OS + " is unsupported for ingress gateways")
|
||||
}
|
||||
if node.OS == "linux" && node.FirewallInUse == models.FIREWALL_NONE {
|
||||
return models.Node{}, errors.New("firewall is not supported for ingress gateways")
|
||||
}
|
||||
// if node.OS != "linux" { // add in darwin later
|
||||
// return models.Node{}, errors.New(node.OS + " is unsupported for ingress gateways")
|
||||
// }
|
||||
// if node.OS == "linux" && node.FirewallInUse == models.FIREWALL_NONE {
|
||||
// return models.Node{}, errors.New("firewall is not supported for ingress gateways")
|
||||
// }
|
||||
|
||||
if err != nil {
|
||||
return models.Node{}, err
|
||||
|
Reference in New Issue
Block a user