cli: set MTU in wg-quick conf

This commit is contained in:
Thomas Tendyck 2022-03-31 16:40:59 +02:00 committed by Thomas Tendyck
parent 935b2a4490
commit c0105a59aa
5 changed files with 20 additions and 12 deletions

View file

@ -5,6 +5,7 @@ import (
"context"
"encoding/base64"
"errors"
"fmt"
"strconv"
"strings"
"testing"
@ -728,7 +729,7 @@ func TestWriteWGQuickFile(t *testing.T) {
assert.NoError(err)
file, err := tc.fileHandler.Read(*tc.config.WGQuickConfigPath)
assert.NoError(err)
assert.NotEmpty(file)
assert.Contains(string(file), fmt.Sprint("MTU = ", wireguardAdminMTU))
}
})
}