Set default MTU from WgQuick config

This commit is contained in:
Mykola Baibuz
2023-10-20 23:33:05 +03:00
parent 35d71a2cc6
commit f2c32a4ab9

View File

@@ -237,6 +237,7 @@ func FromWgQuick(s string, name string) (*Config, error) {
parserState := notInASection
conf := Config{Name: name}
sawPrivateKey := false
conf.Interface.MTU = 1420
var peer *Peer
for _, line := range lines {
pound := strings.IndexByte(line, '#')