Make it work

This commit is contained in:
braginini
2023-03-27 19:09:01 +02:00
parent 2e7d199a6d
commit d6c2b46019
7 changed files with 34 additions and 49 deletions

View File

@@ -11,10 +11,10 @@ import (
)
func (c *tunDevice) Create() error {
if WireguardModuleIsLoaded() {
/*if WireguardModuleIsLoaded() {
log.Info("using kernel WireGuard")
return c.createWithKernel()
}
}*/
if !tunModuleIsLoaded() {
return fmt.Errorf("couldn't check or load tun module")