text
stringlengths
9
39.2M
dir
stringlengths
25
226
lang
stringclasses
163 values
created_date
timestamp[s]
updated_date
timestamp[s]
repo_name
stringclasses
751 values
repo_full_name
stringclasses
752 values
star
int64
1.01k
183k
len_tokens
int64
1
18.5M
```go package dnsforward import ( "net" "net/url" "strings" "testing" "time" "github.com/AdguardTeam/dnsproxy/upstream" "github.com/AdguardTeam/golibs/testutil" "github.com/miekg/dns" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) func TestUpstreamConfigValidator(t *testing.T)...
/content/code_sandbox/internal/dnsforward/upstreams_internal_test.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
1,783
```go package dnsforward import ( "net" "testing" "github.com/AdguardTeam/dnsproxy/proxy" "github.com/miekg/dns" "github.com/stretchr/testify/assert" ) // fakeIpsetMgr is a fake aghnet.IpsetManager for tests. type fakeIpsetMgr struct { ip4s []net.IP ip6s []net.IP } // Add implements the aghnet.IpsetManager i...
/content/code_sandbox/internal/dnsforward/ipset_internal_test.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
1,241
```go package dnsforward import ( "crypto/tls" "net" "testing" "time" "github.com/AdguardTeam/AdGuardHome/internal/aghtest" "github.com/AdguardTeam/AdGuardHome/internal/filtering" "github.com/AdguardTeam/dnsproxy/proxy" "github.com/miekg/dns" "github.com/stretchr/testify/assert" "github.com/stretchr/testify...
/content/code_sandbox/internal/dnsforward/beforerequest_internal_test.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
2,320
```go package dnsforward import ( "net/netip" "testing" "time" "github.com/AdguardTeam/AdGuardHome/internal/aghnet" "github.com/AdguardTeam/AdGuardHome/internal/filtering" "github.com/AdguardTeam/AdGuardHome/internal/querylog" "github.com/AdguardTeam/AdGuardHome/internal/stats" "github.com/AdguardTeam/dnsprox...
/content/code_sandbox/internal/dnsforward/stats_test.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
1,930
```go package dnsforward import ( "fmt" "sync" "github.com/AdguardTeam/dnsproxy/proxy" "github.com/AdguardTeam/dnsproxy/upstream" "github.com/AdguardTeam/golibs/errors" "github.com/AdguardTeam/golibs/log" "github.com/miekg/dns" ) // upstreamConfigValidator parses each section of an upstream configuration into...
/content/code_sandbox/internal/dnsforward/configvalidator.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
2,924
```go package dnsforward import ( "net" "time" "github.com/AdguardTeam/AdGuardHome/internal/aghnet" "github.com/AdguardTeam/AdGuardHome/internal/filtering" "github.com/AdguardTeam/AdGuardHome/internal/querylog" "github.com/AdguardTeam/AdGuardHome/internal/stats" "github.com/AdguardTeam/dnsproxy/proxy" "github...
/content/code_sandbox/internal/dnsforward/stats.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
1,350
```go package dnsforward import ( "bytes" "encoding/json" "io" "net" "net/http" "net/http/httptest" "net/netip" "net/url" "os" "path/filepath" "strings" "testing" "testing/fstest" "time" "github.com/AdguardTeam/AdGuardHome/internal/aghhttp" "github.com/AdguardTeam/AdGuardHome/internal/aghnet" "github...
/content/code_sandbox/internal/dnsforward/http_test.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
3,759
```go // Package dnsforward contains a DNS forwarding server. package dnsforward import ( "cmp" "context" "fmt" "io" "log/slog" "net" "net/http" "net/netip" "runtime" "slices" "strings" "sync" "sync/atomic" "time" "github.com/AdguardTeam/AdGuardHome/internal/aghnet" "github.com/AdguardTeam/AdGuardHome...
/content/code_sandbox/internal/dnsforward/dnsforward.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
7,030
```go package dnsforward import ( "crypto/tls" "net" "net/http" "net/url" "testing" "github.com/AdguardTeam/dnsproxy/proxy" "github.com/AdguardTeam/golibs/logutil/slogutil" "github.com/AdguardTeam/golibs/testutil" "github.com/quic-go/quic-go" "github.com/stretchr/testify/assert" ) // testTLSConn is a tlsCo...
/content/code_sandbox/internal/dnsforward/clientid_test.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
2,857
```go package dnsforward import ( "crypto/tls" "crypto/x509" "fmt" "net" "net/netip" "os" "slices" "strings" "time" "github.com/AdguardTeam/AdGuardHome/internal/aghalg" "github.com/AdguardTeam/AdGuardHome/internal/aghhttp" "github.com/AdguardTeam/AdGuardHome/internal/aghnet" "github.com/AdguardTeam/AdGua...
/content/code_sandbox/internal/dnsforward/config.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
6,872
```go package dnsforward import ( "slices" "testing" "github.com/stretchr/testify/assert" ) func TestAnyNameMatches(t *testing.T) { dnsNames := []string{"host1", "*.host2", "1.2.3.4"} slices.Sort(dnsNames) testCases := []struct { name string dnsName string want bool }{{ name: "match", dnsN...
/content/code_sandbox/internal/dnsforward/config_test.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
350
```go package dnsforward import ( "crypto/tls" "fmt" "path" "strings" "github.com/AdguardTeam/dnsproxy/proxy" "github.com/AdguardTeam/golibs/errors" "github.com/AdguardTeam/golibs/log" "github.com/AdguardTeam/golibs/netutil" "github.com/quic-go/quic-go" ) // ValidateClientID returns an error if id is not a ...
/content/code_sandbox/internal/dnsforward/clientid.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
1,137
```go package home import ( "context" "crypto/tls" "io/fs" "log/slog" "net/http" "net/netip" "runtime" "sync" "time" "github.com/AdguardTeam/AdGuardHome/internal/aghhttp" "github.com/AdguardTeam/AdGuardHome/internal/aghnet" "github.com/AdguardTeam/AdGuardHome/internal/updater" "github.com/AdguardTeam/gol...
/content/code_sandbox/internal/home/web.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
2,556
```go package home import ( "net/netip" "testing" "github.com/AdguardTeam/AdGuardHome/internal/client" "github.com/AdguardTeam/AdGuardHome/internal/filtering" "github.com/AdguardTeam/AdGuardHome/internal/schedule" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) var testIPv4 = neti...
/content/code_sandbox/internal/home/dns_internal_test.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
1,464
```go package home import ( "net/http" "os" "testing" "time" "github.com/josharian/native" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) func TestAuthGL(t *testing.T) { dir := t.TempDir() GLMode = true t.Cleanup(func() { GLMode = false }) glFilePrefix = dir + "/gl_token_" ...
/content/code_sandbox/internal/home/authglinet_test.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
230
```go package home import ( "fmt" "io/fs" "os" "runtime" "strconv" "strings" "syscall" "time" "github.com/AdguardTeam/AdGuardHome/internal/aghhttp" "github.com/AdguardTeam/AdGuardHome/internal/aghos" "github.com/AdguardTeam/AdGuardHome/internal/version" "github.com/AdguardTeam/golibs/errors" "github.com/...
/content/code_sandbox/internal/home/service.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
4,911
```go package home import ( "context" "crypto/tls" "net" "net/http" "net/url" ) // httpClient returns a new HTTP client that uses the AdGuard Home's own DNS // server for resolving hostnames. The resulting client should not be used // until [Context.dnsServer] is initialized. // // TODO(a.garipov, e.burkov): Th...
/content/code_sandbox/internal/home/httpclient.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
342
```go package dnsforward import ( "cmp" "crypto/ecdsa" "crypto/rand" "crypto/rsa" "crypto/sha256" "crypto/tls" "crypto/x509" "crypto/x509/pkix" "encoding/hex" "encoding/pem" "fmt" "math/big" "net" "net/netip" "sync" "sync/atomic" "testing" "testing/fstest" "time" "github.com/AdguardTeam/AdGuardHom...
/content/code_sandbox/internal/dnsforward/dnsforward_test.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
13,475
```go package home import ( "context" "encoding/json" "fmt" "net/http" "os" "os/exec" "runtime" "syscall" "time" "github.com/AdguardTeam/AdGuardHome/internal/aghalg" "github.com/AdguardTeam/AdGuardHome/internal/aghhttp" "github.com/AdguardTeam/AdGuardHome/internal/aghnet" "github.com/AdguardTeam/AdGuardH...
/content/code_sandbox/internal/home/controlupdate.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
1,610
```go package home var clientTags = []string{ "device_audio", "device_camera", "device_gameconsole", "device_laptop", "device_nas", // Network-attached Storage "device_other", "device_pc", "device_phone", "device_printer", "device_securityalarm", "device_tablet", "device_tv", "os_android", "os_ios", "o...
/content/code_sandbox/internal/home/clientstags.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
120
```go package home import ( "net" "testing" "time" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) func TestAuthRateLimiter_Cleanup(t *testing.T) { const key = "some-key" now := time.Now() testCases := []struct { name string att failedAuth wantExp bool }{{ name: ...
/content/code_sandbox/internal/home/authratelimiter_test.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
1,252
```go // Package home contains AdGuard Home's HTTP API methods. package home import ( "context" "crypto/x509" "fmt" "io/fs" "log/slog" "net/http" "net/netip" "net/url" "os" "os/signal" "path" "path/filepath" "runtime" "slices" "sync" "syscall" "time" "github.com/AdguardTeam/AdGuardHome/internal/agha...
/content/code_sandbox/internal/home/home.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
6,981
```go package home import ( "testing" "github.com/AdguardTeam/golibs/testutil" ) func TestMain(m *testing.M) { initCmdLineOpts() testutil.DiscardLogOutput(m) } ```
/content/code_sandbox/internal/home/home_test.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
46
```go package home import ( "testing" "time" "github.com/AdguardTeam/golibs/testutil" "github.com/stretchr/testify/assert" ) var testCertChainData = []byte(`-----BEGIN CERTIFICATE----- your_sha256_hash your_sha256_hash your_sha256_hash your_sha256_hash your_sha256_hash QFw/bdV4fZ9tdWFAVRRkgeGbIZzP7YBD1Ore/O5SQ+D...
/content/code_sandbox/internal/home/tls_internal_test.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
1,138
```go package home import ( "crypto/rand" "encoding/binary" "encoding/hex" "fmt" "net/http" "sync" "time" "github.com/AdguardTeam/golibs/errors" "github.com/AdguardTeam/golibs/log" "github.com/AdguardTeam/golibs/netutil" "go.etcd.io/bbolt" "golang.org/x/crypto/bcrypt" ) // sessionTokenSize is the length ...
/content/code_sandbox/internal/home/auth.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
2,441
```go package home import ( "encoding/json" "fmt" "net" "net/http" "net/url" "path" "github.com/AdguardTeam/AdGuardHome/internal/aghhttp" "github.com/AdguardTeam/AdGuardHome/internal/dnsforward" "github.com/AdguardTeam/golibs/errors" "github.com/AdguardTeam/golibs/httphdr" "github.com/AdguardTeam/golibs/lo...
/content/code_sandbox/internal/home/mobileconfig.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
1,308
```go package home import ( "fmt" "net/netip" "os" "strconv" "strings" "github.com/AdguardTeam/AdGuardHome/internal/configmigrate" "github.com/AdguardTeam/AdGuardHome/internal/version" "github.com/AdguardTeam/golibs/log" "github.com/AdguardTeam/golibs/stringutil" ) // TODO(a.garipov): Replace with package f...
/content/code_sandbox/internal/home/options.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
3,864
```go package home import ( "bytes" "encoding/json" "net/http" "net/http/httptest" "net/netip" "testing" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "howett.net/plist" ) // setupDNSIPs is a helper that sets up the server IP address configuration for // tests and also tears it ...
/content/code_sandbox/internal/home/mobileconfig_test.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
1,231
```go package home import ( "context" "encoding/json" "fmt" "io" "net/http" "net/netip" "os" "os/exec" "path/filepath" "runtime" "time" "unicode/utf8" "github.com/AdguardTeam/AdGuardHome/internal/aghalg" "github.com/AdguardTeam/AdGuardHome/internal/aghhttp" "github.com/AdguardTeam/AdGuardHome/internal/...
/content/code_sandbox/internal/home/controlinstall.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
3,798
```go //go:build !(openbsd || linux) package home // chooseSystem checks the current system detected and substitutes it with local // implementation if needed. func chooseSystem() {} ```
/content/code_sandbox/internal/home/service_others.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
38
```go package home import ( "sync" "time" ) // failedAuthTTL is the period of time for which the failed attempt will stay in // cache. const failedAuthTTL = 1 * time.Minute // failedAuth is an entry of authRateLimiter's cache. type failedAuth struct { until time.Time num uint } // authRateLimiter used to cach...
/content/code_sandbox/internal/home/authratelimiter.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
725
```go package home import ( "fmt" "net" "net/netip" "slices" "sync" "time" "github.com/AdguardTeam/AdGuardHome/internal/aghnet" "github.com/AdguardTeam/AdGuardHome/internal/arpdb" "github.com/AdguardTeam/AdGuardHome/internal/client" "github.com/AdguardTeam/AdGuardHome/internal/dhcpsvc" "github.com/AdguardT...
/content/code_sandbox/internal/home/clients.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
5,001
```go package home import ( "bytes" "cmp" "encoding/json" "io" "net/http" "net/http/httptest" "net/netip" "net/url" "slices" "testing" "github.com/AdguardTeam/AdGuardHome/internal/client" "github.com/AdguardTeam/AdGuardHome/internal/filtering" "github.com/AdguardTeam/AdGuardHome/internal/schedule" "gith...
/content/code_sandbox/internal/home/clientshttp_internal_test.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
2,765
```go package home import ( "fmt" "log/slog" "net" "net/netip" "net/url" "os" "path/filepath" "time" "github.com/AdguardTeam/AdGuardHome/internal/aghalg" "github.com/AdguardTeam/AdGuardHome/internal/aghhttp" "github.com/AdguardTeam/AdGuardHome/internal/aghnet" "github.com/AdguardTeam/AdGuardHome/internal/...
/content/code_sandbox/internal/home/dns.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
4,349
```go //go:build linux package home import ( "github.com/AdguardTeam/AdGuardHome/internal/aghos" "github.com/kardianos/service" ) // chooseSystem checks the current system detected and substitutes it with local // implementation if needed. func chooseSystem() { sys := service.ChosenSystem() // By default, packag...
/content/code_sandbox/internal/home/service_linux.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
607
```go package home import ( "context" "crypto" "crypto/ecdsa" "crypto/ed25519" "crypto/rsa" "crypto/tls" "crypto/x509" "encoding/base64" "encoding/json" "encoding/pem" "fmt" "net/http" "os" "strings" "sync" "time" "github.com/AdguardTeam/AdGuardHome/internal/aghalg" "github.com/AdguardTeam/AdGuardHo...
/content/code_sandbox/internal/home/tls.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
5,828
```go package home import ( "bytes" "encoding/binary" "io" "net" "net/http" "os" "time" "github.com/AdguardTeam/golibs/ioutil" "github.com/AdguardTeam/golibs/log" "github.com/josharian/native" ) // GLMode - enable GL-Inet compatibility mode var GLMode bool var glFilePrefix = "/tmp/gl_token_" const ( glT...
/content/code_sandbox/internal/home/authglinet.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
617
```go //go:build openbsd package home import ( "cmp" "fmt" "os" "os/signal" "path/filepath" "strings" "syscall" "text/template" "github.com/AdguardTeam/AdGuardHome/internal/aghos" "github.com/AdguardTeam/golibs/errors" "github.com/AdguardTeam/golibs/log" "github.com/kardianos/service" ) // OpenBSD Servi...
/content/code_sandbox/internal/home/service_openbsd.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
2,930
```go package home import ( "cmp" "fmt" "log/slog" "path/filepath" "runtime" "github.com/AdguardTeam/AdGuardHome/internal/aghos" "github.com/AdguardTeam/golibs/log" "github.com/AdguardTeam/golibs/logutil/slogutil" "gopkg.in/natefinch/lumberjack.v2" "gopkg.in/yaml.v3" ) // configSyslog is used to indicate t...
/content/code_sandbox/internal/home/log.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
859
```go package home import ( "net/http" "net/netip" "net/textproto" "net/url" "path/filepath" "testing" "github.com/AdguardTeam/golibs/httphdr" "github.com/AdguardTeam/golibs/testutil" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) // implements http.ResponseWriter type testRes...
/content/code_sandbox/internal/home/authhttp_internal_test.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
1,265
```go package home import ( "encoding/json" "fmt" "net/http" "net/netip" "github.com/AdguardTeam/AdGuardHome/internal/aghalg" "github.com/AdguardTeam/AdGuardHome/internal/aghhttp" "github.com/AdguardTeam/AdGuardHome/internal/client" "github.com/AdguardTeam/AdGuardHome/internal/filtering" "github.com/AdguardT...
/content/code_sandbox/internal/home/clientshttp.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
3,656
```go package home import ( "encoding/json" "net/http" "github.com/AdguardTeam/AdGuardHome/internal/aghhttp" "github.com/AdguardTeam/golibs/container" "github.com/AdguardTeam/golibs/log" ) // TODO(a.garipov): Get rid of a global or generate from .twosky.json. var allowedLanguages = container.NewMapSet( "ar", ...
/content/code_sandbox/internal/home/i18n.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
523
```go package home import ( "io" "net/http" "net/http/httptest" "strings" "testing" "github.com/AdguardTeam/golibs/ioutil" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) func TestLimitRequestBody(t *testing.T) { errReqLimitReached := &ioutil.LimitError{ Limit: defaultReqBodyS...
/content/code_sandbox/internal/home/middlewares_test.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
419
```go package home import ( "bytes" "crypto/rand" "encoding/hex" "path/filepath" "testing" "time" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) func TestNewSessionToken(t *testing.T) { // Successful case. token, err := newSessionToken() require.NoError(t, err) assert.Len(t,...
/content/code_sandbox/internal/home/auth_internal_test.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
591
```go package home import ( "fmt" "net/netip" "testing" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) func testParseOK(t *testing.T, ss ...string) options { t.Helper() o, _, err := parseCmdOpts("", ss) require.NoError(t, err) return o } func testParseErr(t *testing.T, descr...
/content/code_sandbox/internal/home/options_test.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
2,342
```go package home import ( "encoding/hex" "encoding/json" "fmt" "net/http" "net/netip" "path" "strconv" "strings" "time" "github.com/AdguardTeam/AdGuardHome/internal/aghhttp" "github.com/AdguardTeam/golibs/errors" "github.com/AdguardTeam/golibs/httphdr" "github.com/AdguardTeam/golibs/log" "github.com/A...
/content/code_sandbox/internal/home/authhttp.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
2,514
```go package home import ( "encoding/json" "fmt" "net/http" "github.com/AdguardTeam/AdGuardHome/internal/aghhttp" "github.com/AdguardTeam/golibs/log" ) // Theme is an enum of all allowed UI themes. type Theme string // Allowed [Theme] values. // // Keep in sync with client/src/helpers/constants.ts. const ( T...
/content/code_sandbox/internal/home/profilehttp.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
587
```go package home import ( "fmt" "net/http" "net/netip" "net/url" "runtime" "strings" "time" "github.com/AdguardTeam/AdGuardHome/internal/aghhttp" "github.com/AdguardTeam/AdGuardHome/internal/aghnet" "github.com/AdguardTeam/AdGuardHome/internal/dnsforward" "github.com/AdguardTeam/AdGuardHome/internal/vers...
/content/code_sandbox/internal/home/control.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
3,299
```go package home import ( "io" "net/http" "github.com/AdguardTeam/golibs/ioutil" "github.com/c2h5oh/datasize" ) // middlerware is a wrapper function signature. type middleware func(http.Handler) http.Handler // withMiddlewares consequently wraps h with all the middlewares. // // TODO(e.burkov): Use [httputil...
/content/code_sandbox/internal/home/middlewares.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
492
```go package home import ( "bytes" "fmt" "net/netip" "os" "path/filepath" "sync" "github.com/AdguardTeam/AdGuardHome/internal/aghalg" "github.com/AdguardTeam/AdGuardHome/internal/aghtls" "github.com/AdguardTeam/AdGuardHome/internal/configmigrate" "github.com/AdguardTeam/AdGuardHome/internal/dhcpd" "github...
/content/code_sandbox/internal/home/config.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
6,129
```go package home import ( "net" "net/netip" "runtime" "testing" "time" "github.com/AdguardTeam/AdGuardHome/internal/client" "github.com/AdguardTeam/AdGuardHome/internal/dhcpd" "github.com/AdguardTeam/AdGuardHome/internal/dhcpsvc" "github.com/AdguardTeam/AdGuardHome/internal/filtering" "github.com/AdguardT...
/content/code_sandbox/internal/home/clients_internal_test.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
3,062
```go // Package version contains AdGuard Home version information. package version import ( "fmt" "runtime" "runtime/debug" "strconv" "strings" "time" "github.com/AdguardTeam/golibs/stringutil" ) // Channel constants. const ( ChannelBeta = "beta" ChannelCandidate = "candidate" ChannelDevelopment ...
/content/code_sandbox/internal/version/version.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
1,294
```go //go:build race package version const isRace = true ```
/content/code_sandbox/internal/version/race.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
16
```go //go:build !race package version const isRace = false ```
/content/code_sandbox/internal/version/norace.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
17
```go package configmigrate import ( "fmt" "golang.org/x/crypto/bcrypt" ) // migrateTo5 performs the following changes: // // # BEFORE: // 'schema_version': 4 // 'auth_name': // 'auth_pass': // # // // # AFTER: // 'schema_version': 5 // 'users': // - 'name': // 'password': <hashed> // # func migrateTo5(disk...
/content/code_sandbox/internal/configmigrate/v5.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
260
```go package configmigrate import ( "os" "path/filepath" "github.com/AdguardTeam/golibs/errors" "github.com/AdguardTeam/golibs/log" ) // migrateTo2 performs the following changes: // // # BEFORE: // 'schema_version': 1 // 'coredns': // # // // # AFTER: // 'schema_version': 2 // 'dns': // # // // It also d...
/content/code_sandbox/internal/configmigrate/v2.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
241
```go package configmigrate import ( "fmt" "net/url" "strconv" "strings" "github.com/AdguardTeam/golibs/netutil" ) // migrateTo10 performs the following changes: // // # BEFORE: // 'schema_version': 9 // 'dns': // 'upstream_dns': // - 'quic://some-upstream.com' // 'local_ptr_upstreams': // - 'quic://s...
/content/code_sandbox/internal/configmigrate/v10.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
750
```go package configmigrate import ( "fmt" ) type ( // yarr is the convenience alias for YAML array. yarr = []any // yobj is the convenience alias for YAML key-value object. yobj = map[string]any ) // fieldVal returns the value of type T for key from obj. Use [any] if the // field's type doesn't matter. func ...
/content/code_sandbox/internal/configmigrate/yaml.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
330
```go package configmigrate // migrateTo11 performs the following changes: // // # BEFORE: // 'schema_version': 10 // 'rlimit_nofile': 42 // # // // # AFTER: // 'schema_version': 11 // 'os': // 'group': '' // 'rlimit_nofile': 42 // 'user': '' // # func migrateTo11(diskConf yobj) (err error) { diskConf["schema...
/content/code_sandbox/internal/configmigrate/v11.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
199
```go package configmigrate import ( "bytes" "fmt" "github.com/AdguardTeam/golibs/log" yaml "gopkg.in/yaml.v3" ) // Config is a the configuration for initializing a [Migrator]. type Config struct { // WorkingDir is an absolute path to the working directory of AdGuardHome. WorkingDir string } // Migrator perfo...
/content/code_sandbox/internal/configmigrate/migrator.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
1,081
```go package configmigrate // migrateTo25 performs the following changes: // // # BEFORE: // 'schema_version': 24 // 'debug_pprof': true // # // // # AFTER: // 'schema_version': 25 // 'http': // 'pprof': // 'enabled': true // 'port': 6060 // # func migrateTo25(diskConf yobj) (err error) { diskConf["schem...
/content/code_sandbox/internal/configmigrate/v25.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
217
```go package configmigrate // migrateTo18 performs the following changes: // // # BEFORE: // 'schema_version': 17 // 'dns': // 'safesearch_enabled': true // # // # // // # AFTER: // 'schema_version': 18 // 'dns': // 'safe_search': // 'enabled': true // 'bing': true // 'duckduckgo': true // 'go...
/content/code_sandbox/internal/configmigrate/v18.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
295
```go package configmigrate // migrateTo17 performs the following changes: // // # BEFORE: // 'schema_version': 16 // 'dns': // 'edns_client_subnet': false // # // # // // # AFTER: // 'schema_version': 17 // 'dns': // 'edns_client_subnet': // 'enabled': false // 'use_custom': false // 'custom_ip': ...
/content/code_sandbox/internal/configmigrate/v17.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
226
```go package configmigrate import "fmt" // migrateTo6 performs the following changes: // // # BEFORE: // 'schema_version': 5 // 'clients': // - # // 'ip': '127.0.0.1' // 'mac': 'AA:AA:AA:AA:AA:AA' // # // # // // # AFTER: // 'schema_version': 6 // 'clients': // - # // 'ip': '127.0.0.1' // 'mac': ...
/content/code_sandbox/internal/configmigrate/v6.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
390
```go package configmigrate import ( "fmt" ) // migrateTo22 performs the following changes: // // # BEFORE: // 'schema_version': 21 // 'persistent': // - 'name': 'client_name' // 'blocked_services': // - 'svc_name' // - # // # // # // # // // # AFTER: // 'schema_version': 22 // 'persistent': ...
/content/code_sandbox/internal/configmigrate/v22.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
406
```go package configmigrate_test import ( "io/fs" "os" "path" "testing" "github.com/AdguardTeam/AdGuardHome/internal/configmigrate" "github.com/AdguardTeam/golibs/testutil" "github.com/stretchr/testify/require" "golang.org/x/crypto/bcrypt" yaml "gopkg.in/yaml.v3" ) func TestMain(m *testing.M) { testutil.Di...
/content/code_sandbox/internal/configmigrate/migrator_test.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
1,643
```go package configmigrate // migrateTo3 performs the following changes: // // # BEFORE: // 'schema_version': 2 // 'dns': // 'bootstrap_dns': '1.1.1.1' // # // // # AFTER: // 'schema_version': 3 // 'dns': // 'bootstrap_dns': // - '1.1.1.1' // # func migrateTo3(diskConf yobj) (err error) { diskConf["schem...
/content/code_sandbox/internal/configmigrate/v3.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
195
```go package configmigrate // migrateTo27 performs the following changes: // // # BEFORE: // 'querylog': // 'ignored': // - '.' // - # // # // 'statistics': // 'ignored': // - '.' // - # // # // # // // # AFTER: // 'querylog': // 'ignored': // - '|.^' // - # // # // 'statistics': // '...
/content/code_sandbox/internal/configmigrate/v27.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
397
```go package configmigrate // migrateTo13 performs the following changes: // // # BEFORE: // 'schema_version': 12 // 'dns': // 'local_domain_name': 'lan' // # // # // // # AFTER: // 'schema_version': 13 // 'dhcp': // 'local_domain_name': 'lan' // # // # func migrateTo13(diskConf yobj) (err error) { diskC...
/content/code_sandbox/internal/configmigrate/v13.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
189
```go package configmigrate import "github.com/AdguardTeam/golibs/errors" // migrateTo24 performs the following changes: // // # BEFORE: // 'schema_version': 23 // 'log_file': "" // 'log_max_backups': 0 // 'log_max_size': 100 // 'log_max_age': 3 // 'log_compress': false // 'log_localtime': false // 'verbose': false /...
/content/code_sandbox/internal/configmigrate/v24.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
421
```go package configmigrate // migrateTo14 performs the following changes: // // # BEFORE: // 'schema_version': 13 // 'dns': // 'resolve_clients': true // # // 'clients': // - 'name': 'client-name' // # // # // // # AFTER: // 'schema_version': 14 // 'dns': // # // 'clients': // 'persistent': // - 'name...
/content/code_sandbox/internal/configmigrate/v14.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
373
```go package configmigrate import "github.com/AdguardTeam/golibs/errors" // migrateTo15 performs the following changes: // // # BEFORE: // 'schema_version': 14 // 'dns': // # // 'querylog_enabled': true // 'querylog_file_enabled': true // 'querylog_interval': '2160h' // 'querylog_size_memory': 1000 // 'qu...
/content/code_sandbox/internal/configmigrate/v15.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
396
```go package configmigrate import ( "os" "path/filepath" "github.com/AdguardTeam/golibs/errors" "github.com/AdguardTeam/golibs/log" ) // migrateTo1 performs the following changes: // // # BEFORE: // # // // # AFTER: // 'schema_version': 1 // # // // It also deletes the unused dnsfilter.txt file, since the fol...
/content/code_sandbox/internal/configmigrate/v1.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
219
```go package configmigrate import ( "github.com/AdguardTeam/AdGuardHome/internal/dnsforward" ) // migrateTo28 performs the following changes: // // # BEFORE: // 'dns': // 'all_servers': true // 'fastest_addr': true // # // # // // # AFTER: // 'dns': // 'upstream_mode': 'parallel' // # // # func migrat...
/content/code_sandbox/internal/configmigrate/v28.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
292
```go package configmigrate // migrateTo21 performs the following changes: // // # BEFORE: // 'schema_version': 20 // 'dns': // 'blocked_services': // - 'svc_name' // - # // # // # // // # AFTER: // 'schema_version': 21 // 'dns': // 'blocked_services': // 'ids': // - 'svc_name' // - # // ...
/content/code_sandbox/internal/configmigrate/v21.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
255
```go package configmigrate // migrateTo16 performs the following changes: // // # BEFORE: // 'schema_version': 15 // 'dns': // # // 'statistics_interval': 1 // 'statistics': // # // # // // # AFTER: // 'schema_version': 16 // 'dns': // # // 'statistics': // 'enabled': true // 'interval': 1 // 'ignor...
/content/code_sandbox/internal/configmigrate/v16.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
430
```go package configmigrate import ( "time" "github.com/AdguardTeam/golibs/timeutil" ) // migrateTo20 performs the following changes: // // # BEFORE: // 'schema_version': 19 // 'statistics': // 'interval': 1 // # // # // // # AFTER: // 'schema_version': 20 // 'statistics': // 'interval': 24h // # // # ...
/content/code_sandbox/internal/configmigrate/v20.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
240
```go package configmigrate // migrateTo9 performs the following changes: // // # BEFORE: // 'schema_version': 8 // 'dns': // 'autohost_tld': 'lan' // # // # // // # AFTER: // 'schema_version': 9 // 'dns': // 'local_domain_name': 'lan' // # // # func migrateTo9(diskConf yobj) (err error) { diskConf["schem...
/content/code_sandbox/internal/configmigrate/v9.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
167
```go package configmigrate import ( "fmt" "net/netip" "time" "github.com/AdguardTeam/golibs/timeutil" ) // migrateTo23 performs the following changes: // // # BEFORE: // 'schema_version': 22 // 'bind_host': '1.2.3.4' // 'bind_port': 8080 // 'web_session_ttl': 720 // # // // # AFTER: // 'schema_version': 23 // ...
/content/code_sandbox/internal/configmigrate/v23.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
387
```go package configmigrate // migrateTo4 performs the following changes: // // # BEFORE: // 'schema_version': 3 // 'clients': // - # // # // // # AFTER: // 'schema_version': 4 // 'clients': // - 'use_global_blocked_services': true // # // # func migrateTo4(diskConf yobj) (err error) { diskConf["schema_version"...
/content/code_sandbox/internal/configmigrate/v4.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
179
```go package configmigrate import "github.com/AdguardTeam/golibs/errors" // migrateTo26 performs the following changes: // // # BEFORE: // 'schema_version': 25 // 'dns': // 'filtering_enabled': true // 'filters_update_interval': 24 // 'parental_enabled': false // 'safebrowsing_enabled': false // 'safebrows...
/content/code_sandbox/internal/configmigrate/v26.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
1,081
```go // Package configmigrate provides a way to upgrade the YAML configuration file. package configmigrate // LastSchemaVersion is the most recent schema version. const LastSchemaVersion uint = 28 ```
/content/code_sandbox/internal/configmigrate/configmigrate.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
41
```go package configmigrate import "github.com/AdguardTeam/golibs/log" // migrateTo19 performs the following changes: // // # BEFORE: // 'schema_version': 18 // 'clients': // 'persistent': // - 'name': 'client-name' // 'safesearch_enabled': true // # // # // # // // # AFTER: // 'schema_version': 19 /...
/content/code_sandbox/internal/configmigrate/v19.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
442
```go package configmigrate import "github.com/AdguardTeam/golibs/errors" // migrateTo7 performs the following changes: // // # BEFORE: // 'schema_version': 6 // 'dhcp': // 'enabled': false // 'interface_name': vboxnet0 // 'gateway_ip': '192.168.56.1' // 'subnet_mask': '255.255.255.0' // 'range_start': '192...
/content/code_sandbox/internal/configmigrate/v7.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
475
```go package configmigrate // migrateTo8 performs the following changes: // // # BEFORE: // 'schema_version': 7 // 'dns': // 'bind_host': '127.0.0.1' // # // # // // # AFTER: // 'schema_version': 8 // 'dns': // 'bind_hosts': // - '127.0.0.1' // # // # func migrateTo8(diskConf yobj) (err error) { diskCo...
/content/code_sandbox/internal/configmigrate/v8.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
211
```go package configmigrate import ( "time" "github.com/AdguardTeam/golibs/timeutil" ) // migrateTo12 performs the following changes: // // # BEFORE: // 'schema_version': 11 // 'querylog_interval': 90 // # // // # AFTER: // 'schema_version': 12 // 'querylog_interval': '2160h' // # func migrateTo12(diskConf yobj)...
/content/code_sandbox/internal/configmigrate/v12.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
241
```yaml bind_host: 127.0.0.1 bind_port: 3000 users: - name: testuser password: testpassword dns: bind_hosts: - 127.0.0.1 port: 53 protection_enabled: true filtering_enabled: true safebrowsing_enabled: false safe_search: enabled: false bing: true duckduckgo: true google: true...
/content/code_sandbox/internal/configmigrate/testdata/TestMigrateConfig_Migrate/v21/input.yml
yaml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
662
```yaml bind_host: 127.0.0.1 bind_port: 3000 users: - name: testuser password: testpassword dns: bind_hosts: - 127.0.0.1 port: 53 protection_enabled: true filtering_enabled: true safebrowsing_enabled: false safe_search: enabled: false bing: true duckduckgo: true google: true...
/content/code_sandbox/internal/configmigrate/testdata/TestMigrateConfig_Migrate/v21/output.yml
yaml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
674
```yaml bind_host: 127.0.0.1 bind_port: 3000 auth_name: testuser auth_pass: testpassword dns: port: 53 protection_enabled: true filtering_enabled: true safebrowsing_enabled: false safesearch_enabled: false parental_enabled: false parental_sensitivity: 0 blocked_response_ttl: 10 querylog_enabled: true ...
/content/code_sandbox/internal/configmigrate/testdata/TestMigrateConfig_Migrate/v5/input.yml
yaml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
303
```go package configmigrate import ( "testing" "time" "github.com/AdguardTeam/AdGuardHome/internal/dnsforward" "github.com/AdguardTeam/AdGuardHome/internal/filtering" "github.com/AdguardTeam/golibs/testutil" "github.com/AdguardTeam/golibs/timeutil" "github.com/stretchr/testify/assert" "github.com/stretchr/tes...
/content/code_sandbox/internal/configmigrate/migrations_internal_test.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
11,767
```yaml bind_host: 127.0.0.1 bind_port: 3000 users: - name: testuser password: testpassword dns: port: 53 protection_enabled: true filtering_enabled: true safebrowsing_enabled: false safesearch_enabled: false parental_enabled: false parental_sensitivity: 0 blocked_response_ttl: 10 querylog_enabled: ...
/content/code_sandbox/internal/configmigrate/testdata/TestMigrateConfig_Migrate/v5/output.yml
yaml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
305
```yaml bind_host: 127.0.0.1 bind_port: 3000 users: - name: testuser password: testpassword dns: bind_hosts: - 127.0.0.1 port: 53 protection_enabled: true filtering_enabled: true safebrowsing_enabled: false safesearch_enabled: false parental_enabled: false parental_sensitivity: 0 blocked_response_...
/content/code_sandbox/internal/configmigrate/testdata/TestMigrateConfig_Migrate/v15/input.yml
yaml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
527
```yaml bind_host: 127.0.0.1 bind_port: 3000 users: - name: testuser password: testpassword dns: bind_hosts: - 127.0.0.1 port: 53 protection_enabled: true filtering_enabled: true safebrowsing_enabled: false safesearch_enabled: false parental_enabled: false parental_sensitivity: 0 blocked_response_...
/content/code_sandbox/internal/configmigrate/testdata/TestMigrateConfig_Migrate/v15/output.yml
yaml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
526
```yaml bind_host: 127.0.0.1 bind_port: 3000 users: - name: testuser password: testpassword dns: bind_hosts: - 127.0.0.1 port: 53 local_domain_name: local protection_enabled: true filtering_enabled: true safebrowsing_enabled: false safesearch_enabled: false parental_enabled: false parental_sensiti...
/content/code_sandbox/internal/configmigrate/testdata/TestMigrateConfig_Migrate/v11/input.yml
yaml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
451
```yaml bind_host: 127.0.0.1 bind_port: 3000 users: - name: testuser password: testpassword dns: bind_hosts: - 127.0.0.1 port: 53 local_domain_name: local protection_enabled: true filtering_enabled: true safebrowsing_enabled: false safesearch_enabled: false parental_enabled: false parental_sensiti...
/content/code_sandbox/internal/configmigrate/testdata/TestMigrateConfig_Migrate/v11/output.yml
yaml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
462
```yaml bind_host: 127.0.0.1 bind_port: 3000 users: - name: testuser password: testpassword dns: bind_hosts: - 127.0.0.1 port: 53 autohost_tld: local protection_enabled: true filtering_enabled: true safebrowsing_enabled: false safesearch_enabled: false parental_enabled: false parental_sensitivity:...
/content/code_sandbox/internal/configmigrate/testdata/TestMigrateConfig_Migrate/v9/input.yml
yaml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
429
```yaml bind_host: 127.0.0.1 bind_port: 3000 users: - name: testuser password: testpassword dns: bind_hosts: - 127.0.0.1 port: 53 local_domain_name: local protection_enabled: true filtering_enabled: true safebrowsing_enabled: false safesearch_enabled: false parental_enabled: false parental_sensiti...
/content/code_sandbox/internal/configmigrate/testdata/TestMigrateConfig_Migrate/v9/output.yml
yaml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
428
```yaml bind_host: 127.0.0.1 bind_port: 3000 users: - name: testuser password: testpassword dns: bind_hosts: - 127.0.0.1 port: 53 local_domain_name: local protection_enabled: true filtering_enabled: true safebrowsing_enabled: false safesearch_enabled: false parental_enabled: false parental_sensiti...
/content/code_sandbox/internal/configmigrate/testdata/TestMigrateConfig_Migrate/v12/input.yml
yaml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
470
```yaml bind_host: 127.0.0.1 bind_port: 3000 users: - name: testuser password: testpassword dns: bind_hosts: - 127.0.0.1 port: 53 local_domain_name: local protection_enabled: true filtering_enabled: true safebrowsing_enabled: false safesearch_enabled: false parental_enabled: false parental_sensiti...
/content/code_sandbox/internal/configmigrate/testdata/TestMigrateConfig_Migrate/v12/output.yml
yaml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
471
```yaml bind_host: 127.0.0.1 bind_port: 3000 users: - name: testuser password: testpassword dns: bind_hosts: - 127.0.0.1 port: 53 protection_enabled: true filtering_enabled: true safebrowsing_enabled: false safe_search: enabled: false bing: true duckduckgo: true google: true...
/content/code_sandbox/internal/configmigrate/testdata/TestMigrateConfig_Migrate/v19/input.yml
yaml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
609