Explorar o código

add provision for egress gateway

Anish Mukherjee %!s(int64=2) %!d(string=hai) anos
pai
achega
82d95009c9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      logic/gateway.go

+ 1 - 1
logic/gateway.go

@@ -22,7 +22,7 @@ func CreateEgressGateway(gateway models.EgressGatewayRequest) (models.Node, erro
 	if err != nil {
 		return models.Node{}, err
 	}
-	if host.OS != "linux" { // support for other OS to be added
+	if host.OS != "linux" && host.OS != "freebsd" { // support for other OS to be added
 		return models.Node{}, errors.New(host.OS + " is unsupported for egress gateways")
 	}
 	for i := len(gateway.Ranges) - 1; i >= 0; i-- {