diff --git a/dnscrypt-proxy/plugin_block_ip.go b/dnscrypt-proxy/plugin_block_ip.go index 0224806b..b0e9239f 100644 --- a/dnscrypt-proxy/plugin_block_ip.go +++ b/dnscrypt-proxy/plugin_block_ip.go @@ -3,6 +3,7 @@ package main import ( "errors" "fmt" + "io" "net" "strings" "time" @@ -16,7 +17,7 @@ import ( type PluginBlockIP struct { blockedPrefixes *iradix.Tree blockedIPs map[string]interface{} - logger *lumberjack.Logger + logger io.Writer format string } diff --git a/dnscrypt-proxy/plugin_block_name.go b/dnscrypt-proxy/plugin_block_name.go index 2cea230e..fbfdc5d6 100644 --- a/dnscrypt-proxy/plugin_block_name.go +++ b/dnscrypt-proxy/plugin_block_name.go @@ -3,6 +3,7 @@ package main import ( "errors" "fmt" + "io" "net" "strings" "time" @@ -16,7 +17,7 @@ import ( type BlockedNames struct { allWeeklyRanges *map[string]WeeklyRanges patternMatcher *PatternMatcher - logger *lumberjack.Logger + logger io.Writer format string } diff --git a/dnscrypt-proxy/plugin_nx_log.go b/dnscrypt-proxy/plugin_nx_log.go index b194be02..440a7453 100644 --- a/dnscrypt-proxy/plugin_nx_log.go +++ b/dnscrypt-proxy/plugin_nx_log.go @@ -3,6 +3,7 @@ package main import ( "errors" "fmt" + "io" "net" "time" @@ -12,7 +13,7 @@ import ( ) type PluginNxLog struct { - logger *lumberjack.Logger + logger io.Writer format string } diff --git a/dnscrypt-proxy/plugin_query_log.go b/dnscrypt-proxy/plugin_query_log.go index d94b4b94..d32812f3 100644 --- a/dnscrypt-proxy/plugin_query_log.go +++ b/dnscrypt-proxy/plugin_query_log.go @@ -3,6 +3,7 @@ package main import ( "errors" "fmt" + "io" "net" "strings" "time" @@ -13,7 +14,7 @@ import ( ) type PluginQueryLog struct { - logger *lumberjack.Logger + logger io.Writer format string ignoredQtypes []string } diff --git a/dnscrypt-proxy/plugin_whitelist_name.go b/dnscrypt-proxy/plugin_whitelist_name.go index 0afea33c..c33f3f20 100644 --- a/dnscrypt-proxy/plugin_whitelist_name.go +++ b/dnscrypt-proxy/plugin_whitelist_name.go @@ -3,6 +3,7 @@ package main import ( "errors" "fmt" + "io" "net" "strings" "time" @@ -16,7 +17,7 @@ import ( type PluginWhitelistName struct { allWeeklyRanges *map[string]WeeklyRanges patternMatcher *PatternMatcher - logger *lumberjack.Logger + logger io.Writer format string }