2022-03-22 16:03:15 +01:00
|
|
|
package cmd
|
|
|
|
|
2022-03-31 16:40:59 +02:00
|
|
|
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
|
2022-03-22 16:03:15 +01:00
|
|
|
|
2022-03-31 16:40:59 +02:00
|
|
|
// masterSecretLengthDefault is the default length in bytes for CLI generated master secrets.
|
|
|
|
masterSecretLengthDefault = 32
|
2022-03-22 16:03:15 +01:00
|
|
|
|
2022-03-31 16:40:59 +02:00
|
|
|
// masterSecretLengthMin is the minimal length in bytes for user provided master secrets.
|
|
|
|
masterSecretLengthMin = 16
|
2022-03-22 16:03:15 +01:00
|
|
|
|
2022-03-31 16:40:59 +02:00
|
|
|
// constellationNameLength is the maximum length of a Constellation's name.
|
|
|
|
constellationNameLength = 37
|
|
|
|
)
|