mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-04 20:49:06 +02:00
Add default firewall rules and fix tests in the github flow.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
//go:build !linux
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
@@ -5,15 +7,8 @@ import (
|
||||
"runtime"
|
||||
|
||||
"github.com/netbirdio/netbird/client/firewall"
|
||||
"github.com/netbirdio/netbird/client/firewall/iptables"
|
||||
)
|
||||
|
||||
func buildFirewallManager() (fw firewall.Manager, err error) {
|
||||
switch runtime.GOOS {
|
||||
case "linux":
|
||||
return iptables.Create()
|
||||
|
||||
default:
|
||||
return nil, fmt.Errorf("not implemented for this OS: %s", runtime.GOOS)
|
||||
}
|
||||
func buildFirewallManager(wgIfaceName string) (fw firewall.Manager, err error) {
|
||||
return nil, fmt.Errorf("not implemented for this OS: %s", runtime.GOOS)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user