Skip to content

Commit 5864ee8

Browse files
committed
Format
1 parent 6fcdca7 commit 5864ee8

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

dnscrypt-proxy/common_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,4 @@ func TestExtractClientIPStr(t *testing.T) {
8585
}
8686
})
8787
}
88-
}
88+
}

dnscrypt-proxy/ipcrypt.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func NewIPCryptConfig(keyHex string, algorithm string) (*IPCryptConfig, error) {
6161
config.Tweak = make([]byte, 8)
6262

6363
case "ipcrypt-ndx":
64-
// Extended non-deterministic with 16-byte tweak
64+
// Extended non-deterministic with 16-byte tweak
6565
if len(key) != 32 {
6666
return nil, fmt.Errorf("ipcrypt-ndx requires a 32-byte (64 hex chars) key, got %d bytes", len(key))
6767
}
@@ -185,4 +185,4 @@ func (config *IPCryptConfig) DecryptIP(encryptedStr string) (string, error) {
185185
default:
186186
return "", fmt.Errorf("unsupported algorithm: %s", config.Algorithm)
187187
}
188-
}
188+
}

dnscrypt-proxy/ipcrypt_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,4 +293,4 @@ func TestExtractClientIPStrEncrypted(t *testing.T) {
293293
}
294294
})
295295
}
296-
}
296+
}

dnscrypt-proxy/sources_test.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -476,15 +476,15 @@ func TestPrefetchSources(t *testing.T) {
476476
_, e := setupSourceTestCase(t, d, i, nil, downloadTest)
477477
e.mtime = d.timeUpd
478478
s := &Source{
479-
name: e.Source.name,
480-
urls: e.Source.urls,
481-
format: e.Source.format,
482-
minisignKey: e.Source.minisignKey,
483-
cacheFile: e.Source.cacheFile,
484-
cacheTTL: e.Source.cacheTTL,
485-
prefetchDelay: e.Source.prefetchDelay,
486-
refresh: e.Source.refresh,
487-
prefix: e.Source.prefix,
479+
name: e.Source.name,
480+
urls: e.Source.urls,
481+
format: e.Source.format,
482+
minisignKey: e.Source.minisignKey,
483+
cacheFile: e.Source.cacheFile,
484+
cacheTTL: e.Source.cacheTTL,
485+
prefetchDelay: e.Source.prefetchDelay,
486+
refresh: e.Source.refresh,
487+
prefix: e.Source.prefix,
488488
// bin is intentionally left nil
489489
}
490490
sources = append(sources, s)

0 commit comments

Comments
 (0)