mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-15 04:32:15 -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
|
@ -1,13 +1,17 @@
|
|||
package cmd
|
||||
|
||||
// wireguardKeyLength is the length of a WireGuard key in byte.
|
||||
const wireguardKeyLength = 32
|
||||
const (
|
||||
// wireguardAdminMTU is the MTU designated for the admin's WireGuard interface.
|
||||
//
|
||||
// WireGuard doesn't support Path MTU Discovery. Thus, its default MTU can be too high on some networks.
|
||||
wireguardAdminMTU = 1300
|
||||
|
||||
// masterSecretLengthDefault is the default length in bytes for CLI generated master secrets.
|
||||
const masterSecretLengthDefault = 32
|
||||
// masterSecretLengthDefault is the default length in bytes for CLI generated master secrets.
|
||||
masterSecretLengthDefault = 32
|
||||
|
||||
// masterSecretLengthMin is the minimal length in bytes for user provided master secrets.
|
||||
const masterSecretLengthMin = 16
|
||||
// masterSecretLengthMin is the minimal length in bytes for user provided master secrets.
|
||||
masterSecretLengthMin = 16
|
||||
|
||||
// constellationNameLength is the maximum length of a Constellation's name.
|
||||
const constellationNameLength = 37
|
||||
// constellationNameLength is the maximum length of a Constellation's name.
|
||||
constellationNameLength = 37
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue