aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui
diff options
context:
space:
mode:
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[:], ", "))