mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-30 10:38:46 -04:00
cli: set MTU in wg-quick conf
This commit is contained in:
parent
935b2a4490
commit
c0105a59aa
5 changed files with 20 additions and 12 deletions
|
@ -192,7 +192,8 @@ func TestNewWGQuickConfig(t *testing.T) {
|
|||
t.Run(name, func(t *testing.T) {
|
||||
assert := assert.New(t)
|
||||
|
||||
quickFile, err := NewWGQuickConfig(tc.config, tc.clientVPNIP)
|
||||
const mtu = 2
|
||||
quickFile, err := NewWGQuickConfig(tc.config, tc.clientVPNIP, mtu)
|
||||
|
||||
if tc.wantErr {
|
||||
assert.Error(err)
|
||||
|
@ -202,6 +203,7 @@ func TestNewWGQuickConfig(t *testing.T) {
|
|||
assert.NoError(quickConfig.UnmarshalText(quickFile))
|
||||
assert.Equal(tc.config.PrivateKey, quickConfig.PrivateKey)
|
||||
assert.Equal(tc.clientVPNIP, quickConfig.Address[0].IP.String())
|
||||
assert.Equal(mtu, quickConfig.MTU)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue