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 | 852e38a360d47c7dc64798d1b051b2f61047fd8e (patch) | |
tree | a65c6f4208cde882003109437158456f3e712405 /ui | |
parent | firewall: allow wireguard.exe to override other rules (diff) | |
download | wireguard-windows-852e38a360d47c7dc64798d1b051b2f61047fd8e.tar.xz wireguard-windows-852e38a360d47c7dc64798d1b051b2f61047fd8e.zip |
global: change acronyms to uppercase
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/confview.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/confview.go b/ui/confview.go index 1024befa..7d1996b6 100644 --- a/ui/confview.go +++ b/ui/confview.go @@ -278,8 +278,8 @@ func (iv *interfaceView) apply(c *conf.Interface) { iv.listenPort.hide() } - if c.Mtu > 0 { - iv.mtu.show(strconv.Itoa(int(c.Mtu))) + if c.MTU > 0 { + iv.mtu.show(strconv.Itoa(int(c.MTU))) } else { iv.mtu.hide() } @@ -294,9 +294,9 @@ func (iv *interfaceView) apply(c *conf.Interface) { iv.addresses.hide() } - if len(c.Dns) > 0 { - addrStrings := make([]string, len(c.Dns)) - for i, address := range c.Dns { + if len(c.DNS) > 0 { + addrStrings := make([]string, len(c.DNS)) + for i, address := range c.DNS { addrStrings[i] = address.String() } iv.dns.show(strings.Join(addrStrings[:], ", ")) |