diff options
author | Simon Rozman <simon@rozman.si> | 2019-05-16 10:34:09 +0200 |
---|---|---|
committer | Simon Rozman <simon@rozman.si> | 2019-05-16 10:36:28 +0200 |
commit | 7bd3dccd7a7eed1b31d46570b4c6d2e95ec2a7c6 (patch) | |
tree | a65c6f4208cde882003109437158456f3e712405 /conf/parser.go | |
parent | firewall: allow wireguard.exe to override other rules (diff) | |
download | wireguard-windows-7bd3dccd7a7eed1b31d46570b4c6d2e95ec2a7c6.tar.xz wireguard-windows-7bd3dccd7a7eed1b31d46570b4c6d2e95ec2a7c6.zip |
global: change acronyms to uppercase
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'conf/parser.go')
-rw-r--r-- | conf/parser.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/conf/parser.go b/conf/parser.go index a8ccca07..e98a0244 100644 --- a/conf/parser.go +++ b/conf/parser.go @@ -253,7 +253,7 @@ func FromWgQuick(s string, name string) (*Config, error) { if err != nil { return nil, err } - conf.Interface.Mtu = m + conf.Interface.MTU = m case "address": addresses, err := splitList(val) if err != nil { @@ -276,7 +276,7 @@ func FromWgQuick(s string, name string) (*Config, error) { if a == nil { return nil, &ParseError{"Invalid IP address", address} } - conf.Interface.Dns = append(conf.Interface.Dns, a) + conf.Interface.DNS = append(conf.Interface.DNS, a) } default: return nil, &ParseError{"Invalid key for [Interface] section", key} @@ -345,8 +345,8 @@ func FromUAPI(s string, existingConfig *Config) (*Config, error) { Name: existingConfig.Name, Interface: Interface{ Addresses: existingConfig.Interface.Addresses, - Dns: existingConfig.Interface.Dns, - Mtu: existingConfig.Interface.Mtu, + DNS: existingConfig.Interface.DNS, + MTU: existingConfig.Interface.MTU, }, } var peer *Peer |