aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui
diff options
context:
space:
mode:
authorSimon Rozman <simon@rozman.si>2019-05-16 10:34:09 +0200
committerSimon Rozman <simon@rozman.si>2019-05-16 10:36:28 +0200
commit852e38a360d47c7dc64798d1b051b2f61047fd8e (patch)
treea65c6f4208cde882003109437158456f3e712405 /ui
parentfirewall: allow wireguard.exe to override other rules (diff)
downloadwireguard-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.go10
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[:], ", "))