diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-06-08 00:48:04 -0600 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-06-08 00:48:04 -0600 |
commit | 10495f8fb8fc65830f9a5317f9ecb94c7469d207 (patch) | |
tree | 9db5d316720d1bf652102a922c0939b2545d720f /conf | |
parent | version: bump (diff) | |
download | wireguard-windows-10495f8fb8fc65830f9a5317f9ecb94c7469d207.tar.xz wireguard-windows-10495f8fb8fc65830f9a5317f9ecb94c7469d207.zip |
global: go fmt
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'conf')
-rw-r--r-- | conf/writer.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/conf/writer.go b/conf/writer.go index ab2810c0..365e65e9 100644 --- a/conf/writer.go +++ b/conf/writer.go @@ -28,8 +28,8 @@ func (conf *Config) ToWgQuick() string { output.WriteString(fmt.Sprintf("Address = %s\n", strings.Join(addrStrings[:], ", "))) } - if len(conf.Interface.DNS) + len(conf.Interface.DNSSearch) > 0 { - addrStrings := make([]string, 0, len(conf.Interface.DNS) + len(conf.Interface.DNSSearch)) + if len(conf.Interface.DNS)+len(conf.Interface.DNSSearch) > 0 { + addrStrings := make([]string, 0, len(conf.Interface.DNS)+len(conf.Interface.DNSSearch)) for _, address := range conf.Interface.DNS { addrStrings = append(addrStrings, address.String()) } |