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