docstring_tokens stringlengths 0 76.5k | code_tokens stringlengths 75 1.81M | label_window listlengths 4 2.12k | html_url stringlengths 74 116 | file_name stringlengths 3 311 |
|---|---|---|---|---|
QueryLogEnabled bool `yaml:"querylog_enabled"` // if true, query log is enabled
QueryLogFileEnabled bool `yaml:"querylog_file_enabled"` // if true, query log will be written to a file
// QueryLogInterval is the interval for query log's files rotation.
QueryLogInterval Duration `yaml:"querylog_interval"`
... | <mask>
<mask> // time interval for statistics (in days)
<mask> StatsInterval uint32 `yaml:"statistics_interval"`
<mask>
<mask> QueryLogEnabled bool `yaml:"querylog_enabled"` // if true, query log is enabled
<mask> QueryLogFileEnabled bool `yaml:"querylog_file_enabled"` // if true, query log wil... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/home/config.go |
UpstreamTimeout: Duration{Duration: dnsforward.DefaultTimeout}, | <mask> MaxGoroutines: 300,
<mask> },
<mask> FilteringEnabled: true, // whether or not use filter lists
<mask> FiltersUpdateIntervalHours: 24,
<mask> UpstreamTimeout: Duration{dnsforward.DefaultTimeout},
<mask> LocalDomainName: "lan",
<mask> ResolveClients: ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/home/config.go |
config.DNS.QueryLogInterval = Duration{Duration: 90 * 24 * time.Hour} | <mask> config.WebSessionTTLHours = 30 * 24
<mask>
<mask> config.DNS.QueryLogEnabled = true
<mask> config.DNS.QueryLogFileEnabled = true
<mask> config.DNS.QueryLogInterval = 90
<mask> config.DNS.QueryLogMemSize = 1000
<mask>
<mask> config.DNS.CacheSize = 4 * 1024 * 1024
<mask> config.DNS.DnsfilterConf.... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/home/config.go |
config.DNS.UpstreamTimeout = Duration{Duration: dnsforward.DefaultTimeout} | <mask> config.DNS.FiltersUpdateIntervalHours = 24
<mask> }
<mask>
<mask> if config.DNS.UpstreamTimeout.Duration == 0 {
<mask> config.DNS.UpstreamTimeout = Duration{dnsforward.DefaultTimeout}
<mask> }
<mask>
<mask> return nil
<mask> }
<mask>
</s> Pull request: 2504 querylog interval
Merge in DNS/a... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/home/config.go |
config.DNS.QueryLogInterval = Duration{Duration: dc.RotationIvl} | <mask> dc := querylog.Config{}
<mask> Context.queryLog.WriteDiskConfig(&dc)
<mask> config.DNS.QueryLogEnabled = dc.Enabled
<mask> config.DNS.QueryLogFileEnabled = dc.FileEnabled
<mask> config.DNS.QueryLogInterval = dc.RotationIvl
<mask> config.DNS.QueryLogMemSize = dc.MemSize
<mask> config.DNS.Anon... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/home/config.go |
RotationIvl: config.DNS.QueryLogInterval.Duration, | <mask> ConfigModified: onConfigModified,
<mask> HTTPRegister: httpRegister,
<mask> FindClient: Context.clients.findMultiple,
<mask> BaseDir: baseDir,
<mask> RotationIvl: config.DNS.QueryLogInterval,
<mask> MemSize: config.DNS.QueryLogMemSize,
<mask> Enabled:... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/home/dns.go |
//
// TODO(e.burkov): Make it able to parse larger units like days. | <mask>
<mask> // UnmarshalText implements the encoding.TextUnmarshaler interface for
<mask> // *Duration.
<mask> func (d *Duration) UnmarshalText(b []byte) (err error) {
<mask> defer func() { err = errors.Annotate(err, "unmarshalling duration: %w") }()
<mask>
<mask> d.Duration, err = time.ParseDuration(strin... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/home/duration.go |
"time" | <mask> "path/filepath"
<mask> "runtime"
<mask> "strconv"
<mask> "strings"
<mask>
<mask> "github.com/AdguardTeam/AdGuardHome/internal/aghnet"
<mask> "github.com/AdguardTeam/golibs/errors"
<mask> "github.com/AdguardTeam/golibs/log"
<mask> "github.com/google/renameio/maybe"
</s> Pull request: 2504 query... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/home/upgrade.go |
const currentSchemaVersion = 12 | <mask> yaml "gopkg.in/yaml.v2"
<mask> )
<mask>
<mask> // currentSchemaVersion is the current schema version.
<mask> const currentSchemaVersion = 11
<mask>
<mask> // These aliases are provided for convenience.
<mask> type (
<mask> any = interface{}
<mask> yarr = []any
</s> Pull request: 2504 querylog in... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/home/upgrade.go |
upgradeSchema11to12, | <mask> upgradeSchema8to9,
<mask> upgradeSchema9to10,
<mask> upgradeSchema10to11,
<mask> }
<mask>
<mask> n := 0
<mask> for i, u := range upgrades {
</s> Pull request: 2504 querylog interval
Merge in DNS/adguard-home from 2504-querylog-ivl to master
Updates #2504.
Squashed commit of the following:
c... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/home/upgrade.go |
"time" | <mask> package home
<mask>
<mask> import (
<mask> "testing"
<mask>
<mask> "github.com/stretchr/testify/assert"
<mask> "github.com/stretchr/testify/require"
<mask> )
<mask>
</s> Pull request: 2504 querylog interval
Merge in DNS/adguard-home from 2504-querylog-ivl to master
Updates #2504.
Squashed comm... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/home/upgrade_test.go |
Enabled bool `json:"enabled"`
// Use float64 here to support fractional numbers and not mess the API
// users by changing the units.
Interval float64 `json:"interval"`
AnonymizeClientIP bool `json:"anonymize_client_ip"` | <mask> "golang.org/x/net/idna"
<mask> )
<mask>
<mask> type qlogConfig struct {
<mask> Enabled bool `json:"enabled"`
<mask> Interval uint32 `json:"interval"`
<mask> AnonymizeClientIP bool `json:"anonymize_client_ip"`
<mask> }
<mask>
<mask> // Register web handlers
<mask> func (l *... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/querylog/http.go |
resp.Interval = l.conf.RotationIvl.Hours() / 24 | <mask> // Get configuration
<mask> func (l *queryLog) handleQueryLogInfo(w http.ResponseWriter, r *http.Request) {
<mask> resp := qlogConfig{}
<mask> resp.Enabled = l.conf.Enabled
<mask> resp.Interval = l.conf.RotationIvl
<mask> resp.AnonymizeClientIP = l.conf.AnonymizeClientIP
<mask>
<mask> jsonVal, err ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/querylog/http.go |
ivl := time.Duration(24*d.Interval) * time.Hour
if req.Exists("interval") && !checkInterval(ivl) { | <mask> httpError(r, w, http.StatusBadRequest, "%s", err)
<mask> return
<mask> }
<mask>
<mask> if req.Exists("interval") && !checkInterval(d.Interval) {
<mask> httpError(r, w, http.StatusBadRequest, "Unsupported interval")
<mask> return
<mask> }
<mask>
<mask> l.lock.Lock()
</s> Pull request: 250... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/querylog/http.go |
conf.RotationIvl = ivl | <mask> if req.Exists("enabled") {
<mask> conf.Enabled = d.Enabled
<mask> }
<mask> if req.Exists("interval") {
<mask> conf.RotationIvl = d.Interval
<mask> }
<mask> if req.Exists("anonymize_client_ip") {
<mask> conf.AnonymizeClientIP = d.AnonymizeClientIP
<mask> }
<mask> l.conf = &conf
</s> Pull r... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/querylog/http.go |
func checkInterval(ivl time.Duration) (ok bool) {
// The constants for possible values of query log's rotation interval.
const (
quarterDay = 6 * time.Hour
day = 24 * time.Hour
week = day * 7
month = day * 30
threeMonths = day * 90
)
return ivl == quarterDay || ivl == day || ivl == ... | <mask> func (l *queryLog) Close() {
<mask> _ = l.flushLogBuffer(true)
<mask> }
<mask>
<mask> func checkInterval(days uint32) bool {
<mask> return days == 1 || days == 7 || days == 30 || days == 90
<mask> }
<mask>
<mask> func (l *queryLog) WriteDiskConfig(c *Config) {
<mask> *c = *l.conf
<mask> }
</s> P... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/querylog/qlog.go |
RotationIvl: 24 * time.Hour, | <mask> func TestQueryLog(t *testing.T) {
<mask> l := newQueryLog(Config{
<mask> Enabled: true,
<mask> FileEnabled: true,
<mask> RotationIvl: 1,
<mask> MemSize: 100,
<mask> BaseDir: t.TempDir(),
<mask> })
<mask>
<mask> // Add disk entries.
</s> Pull request: 2504 querylog interval
M... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/querylog/qlog_test.go |
RotationIvl: 24 * time.Hour, | <mask>
<mask> func TestQueryLogOffsetLimit(t *testing.T) {
<mask> l := newQueryLog(Config{
<mask> Enabled: true,
<mask> RotationIvl: 1,
<mask> MemSize: 100,
<mask> BaseDir: t.TempDir(),
<mask> })
<mask>
<mask> const (
</s> Pull request: 2504 querylog interval
Merge in DNS/adguard-ho... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/querylog/qlog_test.go |
want string
wantLen int | <mask> testCases := []struct {
<mask> name string
<mask> offset int
<mask> limit int
<mask> }{{
<mask> name: "page_1",
<mask> want: firstPageDomain,
<mask> wantLen: 10,
</s> Pull request: 2504 querylog interval
Merge in DNS/adguard-home from 2504-querylog-ivl to master
Updates #2504... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/querylog/qlog_test.go |
<mask> testCases := []struct {
<mask> name string
<mask> offset int
<mask> limit int
<mask> wantLen int
<mask> want string
<mask> }{{
<mask> name: "page_1",
<mask> offset: 0,
<mask> limit: 10,
<mask> wantLen: 10,
</s> Pull request: 2504 querylog interval
Merge in DNS/adgu... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/querylog/qlog_test.go | |
want: firstPageDomain,
wantLen: 10, | <mask> offset int
<mask> limit int
<mask> }{{
<mask> name: "page_1",
<mask> offset: 0,
<mask> limit: 10,
<mask> }, {
<mask> name: "page_2",
<mask> want: secondPageDomain,
<mask> wantLen: 10,
</s> Pull request: 2504 querylog interval
Merge in DNS/adguard-home from 2504-queryl... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/querylog/qlog_test.go |
<mask> }{{
<mask> name: "page_1",
<mask> offset: 0,
<mask> limit: 10,
<mask> wantLen: 10,
<mask> want: firstPageDomain,
<mask> }, {
<mask> name: "page_2",
<mask> offset: 10,
<mask> limit: 10,
<mask> wantLen: 10,
</s> Pull request: 2504 querylog interval
Merge in DNS/adgua... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/querylog/qlog_test.go | |
want: secondPageDomain,
wantLen: 10, | <mask> offset: 0,
<mask> limit: 10,
<mask> }, {
<mask> name: "page_2",
<mask> offset: 10,
<mask> limit: 10,
<mask> }, {
<mask> name: "page_2.5",
<mask> want: secondPageDomain,
<mask> wantLen: 5,
</s> Pull request: 2504 querylog interval
Merge in DNS/adguard-home from 2504-qu... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/querylog/qlog_test.go |
<mask> }, {
<mask> name: "page_2",
<mask> offset: 10,
<mask> limit: 10,
<mask> wantLen: 10,
<mask> want: secondPageDomain,
<mask> }, {
<mask> name: "page_2.5",
<mask> offset: 15,
<mask> limit: 10,
<mask> wantLen: 5,
</s> Pull request: 2504 querylog interval
Merge in DNS/a... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/querylog/qlog_test.go | |
want: secondPageDomain,
wantLen: 5, | <mask> }, {
<mask> name: "page_2.5",
<mask> offset: 15,
<mask> limit: 10,
<mask> }, {
<mask> name: "page_3",
<mask> want: "",
<mask> wantLen: 0,
</s> Pull request: 2504 querylog interval
Merge in DNS/adguard-home from 2504-querylog-ivl to master
Updates #2504.
Squashed commit of th... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/querylog/qlog_test.go |
<mask> }, {
<mask> name: "page_2.5",
<mask> offset: 15,
<mask> limit: 10,
<mask> wantLen: 5,
<mask> want: secondPageDomain,
<mask> }, {
<mask> name: "page_3",
<mask> offset: 20,
<mask> limit: 10,
<mask> wantLen: 0,
</s> Pull request: 2504 querylog interval
Merge in DNS/ad... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/querylog/qlog_test.go | |
want: "",
wantLen: 0, | <mask> offset: 15,
<mask> limit: 10,
<mask> }, {
<mask> name: "page_3",
<mask> offset: 20,
<mask> limit: 10,
<mask> }}
<mask>
<mask> for _, tc := range testCases {
<mask> t.Run(tc.name, func(t *testing.T) {
</s> Pull request: 2504 querylog interval
Merge in DNS/adguard-home from 250... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/querylog/qlog_test.go |
<mask> }, {
<mask> name: "page_3",
<mask> offset: 20,
<mask> limit: 10,
<mask> wantLen: 0,
<mask> }}
<mask>
<mask> for _, tc := range testCases {
<mask> t.Run(tc.name, func(t *testing.T) {
<mask> params.offset = tc.offset
</s> Pull request: 2504 querylog interval
Merge in DNS/adguard-... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/querylog/qlog_test.go | |
RotationIvl: 24 * time.Hour, | <mask> func TestQueryLogMaxFileScanEntries(t *testing.T) {
<mask> l := newQueryLog(Config{
<mask> Enabled: true,
<mask> FileEnabled: true,
<mask> RotationIvl: 1,
<mask> MemSize: 100,
<mask> BaseDir: t.TempDir(),
<mask> })
<mask>
<mask> const entNum = 10
</s> Pull request: 2504 query... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/querylog/qlog_test.go |
RotationIvl: 24 * time.Hour, | <mask> func TestQueryLogFileDisabled(t *testing.T) {
<mask> l := newQueryLog(Config{
<mask> Enabled: true,
<mask> FileEnabled: false,
<mask> RotationIvl: 1,
<mask> MemSize: 2,
<mask> BaseDir: t.TempDir(),
<mask> })
<mask>
<mask> addEntry(l, "example1.org", net.IPv4(1, 1, 1, 1), net.I... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/querylog/qlog_test.go |
// RotationIvl is the interval for log rotation. After that period, the
// old log file will be renamed, NOT deleted, so the actual log
// retention time is twice the interval. The value must be one of:
//
// 6 * time.Hour
// 24 * time.Hour
// 7 * 24 * time.Hour
// 30 * 24 * time.Hour
// ... | <mask>
<mask> // BaseDir is the base directory for log files.
<mask> BaseDir string
<mask>
<mask> // RotationIvl is the interval for log rotation, in days. After that
<mask> // period, the old log file will be renamed, NOT deleted, so the actual
<mask> // log retention time is twice the interval.
<mask>... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/querylog/querylog.go |
l.conf.RotationIvl = 24 * time.Hour | <mask> log.Info(
<mask> "querylog: warning: unsupported rotation interval %d, setting to 1 day",
<mask> conf.RotationIvl,
<mask> )
<mask> l.conf.RotationIvl = 1
<mask> }
<mask>
<mask> return l
<mask> }
</s> Pull request: 2504 querylog interval
Merge in DNS/adguard-home from 2504-querylog-ivl t... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/querylog/querylog.go |
func (l *queryLog) readFileFirstTimeValue() (first time.Time, err error) {
var f *os.File
f, err = os.Open(l.logFile) | <mask>
<mask> return nil
<mask> }
<mask>
<mask> func (l *queryLog) readFileFirstTimeValue() int64 {
<mask> f, err := os.Open(l.logFile)
<mask> if err != nil {
<mask> return -1
<mask> }
<mask> defer func() {
<mask> derr := f.Close()
</s> Pull request: 2504 querylog interval
Merge in DNS/adguard-h... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/querylog/querylogfile.go |
return time.Time{}, err | <mask>
<mask> func (l *queryLog) readFileFirstTimeValue() int64 {
<mask> f, err := os.Open(l.logFile)
<mask> if err != nil {
<mask> return -1
<mask> }
<mask> defer func() {
<mask> derr := f.Close()
<mask> if derr != nil {
<mask> log.Error("querylog: closing file: %s", derr)
</s> Pull request: 2... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/querylog/querylogfile.go |
<mask> f, err := os.Open(l.logFile)
<mask> if err != nil {
<mask> return -1
<mask> }
<mask> defer func() {
<mask> derr := f.Close()
<mask> if derr != nil {
<mask> log.Error("querylog: closing file: %s", derr)
<mask> }
<mask> }()
<mask>
<mask> buf := make([]byte, 500)
<mask> r, err := f.R... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/querylog/querylogfile.go | |
defer func() { err = errors.WithDeferred(err, f.Close()) }()
buf := make([]byte, 512)
var r int
r, err = f.Read(buf) | <mask> log.Error("querylog: closing file: %s", derr)
<mask> }
<mask> }()
<mask>
<mask> buf := make([]byte, 500)
<mask> r, err := f.Read(buf)
<mask> if err != nil {
<mask> return -1
<mask> }
<mask> buf = buf[:r]
<mask>
</s> Pull request: 2504 querylog interval
Merge in DNS/adguard-home from 2... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/querylog/querylogfile.go |
return time.Time{}, err | <mask>
<mask> buf := make([]byte, 500)
<mask> r, err := f.Read(buf)
<mask> if err != nil {
<mask> return -1
<mask> }
<mask> buf = buf[:r]
<mask>
<mask> val := readJSONValue(string(buf), `"T":"`)
<mask> t, err := time.Parse(time.RFC3339Nano, val)
</s> Pull request: 2504 querylog interval
Merge in ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/querylog/querylogfile.go |
<mask> r, err := f.Read(buf)
<mask> if err != nil {
<mask> return -1
<mask> }
<mask> buf = buf[:r]
<mask>
<mask> val := readJSONValue(string(buf), `"T":"`)
<mask> t, err := time.Parse(time.RFC3339Nano, val)
<mask> if err != nil {
<mask> return -1
</s> Pull request: 2504 querylog interval
Merge i... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/querylog/querylogfile.go | |
val := readJSONValue(string(buf[:r]), `"T":"`) | <mask> return -1
<mask> }
<mask> buf = buf[:r]
<mask>
<mask> val := readJSONValue(string(buf), `"T":"`)
<mask> t, err := time.Parse(time.RFC3339Nano, val)
<mask> if err != nil {
<mask> return -1
<mask> }
<mask>
</s> Pull request: 2504 querylog interval
Merge in DNS/adguard-home from 2504-querylo... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/querylog/querylogfile.go |
return time.Time{}, err | <mask>
<mask> val := readJSONValue(string(buf), `"T":"`)
<mask> t, err := time.Parse(time.RFC3339Nano, val)
<mask> if err != nil {
<mask> return -1
<mask> }
<mask>
<mask> log.Debug("querylog: the oldest log entry: %s", val)
<mask> return t.Unix()
<mask> }
</s> Pull request: 2504 querylog interval
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/querylog/querylogfile.go |
return t, nil | <mask> return -1
<mask> }
<mask>
<mask> log.Debug("querylog: the oldest log entry: %s", val)
<mask> return t.Unix()
<mask> }
<mask>
<mask> func (l *queryLog) periodicRotate() {
<mask> intervalSeconds := uint64(l.conf.RotationIvl) * 24 * 60 * 60
<mask> for {
</s> Pull request: 2504 querylog interval
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/querylog/querylogfile.go |
defer log.OnPanic("querylog: rotating")
var err error | <mask> return t.Unix()
<mask> }
<mask>
<mask> func (l *queryLog) periodicRotate() {
<mask> intervalSeconds := uint64(l.conf.RotationIvl) * 24 * 60 * 60
<mask> for {
<mask> oldest := l.readFileFirstTimeValue()
<mask> if uint64(oldest)+intervalSeconds <= uint64(time.Now().Unix()) {
<mask> _ = l.rotate... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/querylog/querylogfile.go |
var oldest time.Time
oldest, err = l.readFileFirstTimeValue()
if err != nil {
log.Debug("%s", err)
}
if oldest.Add(l.conf.RotationIvl).After(time.Now()) {
err = l.rotate()
if err != nil {
log.Debug("%s", err)
} | <mask>
<mask> func (l *queryLog) periodicRotate() {
<mask> intervalSeconds := uint64(l.conf.RotationIvl) * 24 * 60 * 60
<mask> for {
<mask> oldest := l.readFileFirstTimeValue()
<mask> if uint64(oldest)+intervalSeconds <= uint64(time.Now().Unix()) {
<mask> _ = l.rotate()
<mask> }
<mask>
<mask> t... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/querylog/querylogfile.go |
// What? | <mask> log.Debug("%s", err)
<mask> }
<mask> }
<mask>
<mask> time.Sleep(24 * time.Hour)
<mask> }
<mask> }
</s> Pull request: 2504 querylog interval
Merge in DNS/adguard-home from 2504-querylog-ivl to master
Updates #2504.
Squashed commit of the following:
commit 5d15a6f735cd195fc81c8af909b56fbc7... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/querylog/querylogfile.go |
RotationIvl: 24 * time.Hour, | <mask>
<mask> l := newQueryLog(Config{
<mask> FindClient: findClient,
<mask> BaseDir: t.TempDir(),
<mask> RotationIvl: 1,
<mask> MemSize: 100,
<mask> Enabled: true,
<mask> FileEnabled: true,
<mask> AnonymizeClientIP: false,
<mask> })
</s> Pull... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | internal/querylog/search_test.go |
'description': >
Time period for query log rotation.
'type': 'number'
'enum':
- 0.25
- 1
- 7
- 30
- 90 | <mask> 'enabled':
<mask> 'type': 'boolean'
<mask> 'description': 'Is query log enabled'
<mask> 'interval':
<mask> 'type': 'integer'
<mask> 'description': 'Time period to keep data (1 | 7 | 30 | 90)'
<mask> 'anonymize_client_ip':
<mask> 't... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e113b276e7db134f99f9f920c4c410467a698c92 | openapi/openapi.yaml |
<mask> package aghnet
<mask>
<mask> import (
<mask> "bufio"
<mask> "io"
<mask> "net"
<mask> "os"
<mask> "path/filepath"
<mask> "runtime"
<mask> "strings"
</s> Pull request: all: imp cyclo in new code
Updates #2646,
Squashed commit of the following:
commit af6a6fa2b7229bc0f1c7c9083b0391a6bec7ae70
A... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e17e1f20fbd88b6af9be0e60e658aad720e32ba8 | internal/aghnet/etchostscontainer.go | |
// parseHostsLine parses hosts from the fields.
func parseHostsLine(fields []string) (hosts []string) {
for _, f := range fields {
hashIdx := strings.IndexByte(f, '#')
if hashIdx == 0 {
// The rest of the fields are a part of the comment.
// Skip immediately.
return
} else if hashIdx > 0 {
// Only a ... | <mask> tableRev[ipStr] = append(tableRev[ipStr], newHost)
<mask> log.Debug("etchostscontainer: added reverse-address %s -> %s", ipStr, newHost)
<mask> }
<mask>
<mask> // Read IP-hostname pairs from file
<mask> // Multiple hostnames per line (per one IP) is supported.
<mask> func (ehc *EtcHostsContainer) load(... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e17e1f20fbd88b6af9be0e60e658aad720e32ba8 | internal/aghnet/etchostscontainer.go |
<mask> log.Error("etchostscontainer: closing file: %s", err)
<mask> }
<mask> }()
<mask>
<mask> r := bufio.NewReader(f)
<mask> log.Debug("etchostscontainer: loading hosts from file %s", fn)
<mask>
<mask> for done := false; !done; {
<mask> var line string
<mask> line, err = r.ReadString('\n')
</... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e17e1f20fbd88b6af9be0e60e658aad720e32ba8 | internal/aghnet/etchostscontainer.go | |
s := bufio.NewScanner(f)
for s.Scan() {
line := strings.TrimSpace(s.Text()) | <mask>
<mask> r := bufio.NewReader(f)
<mask> log.Debug("etchostscontainer: loading hosts from file %s", fn)
<mask>
<mask> for done := false; !done; {
<mask> var line string
<mask> line, err = r.ReadString('\n')
<mask> if err == io.EOF {
<mask> done = true
<mask> } else if err != nil {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e17e1f20fbd88b6af9be0e60e658aad720e32ba8 | internal/aghnet/etchostscontainer.go |
hosts := parseHostsLine(fields[1:])
for _, host := range hosts { | <mask> if ip == nil {
<mask> continue
<mask> }
<mask>
<mask> for i := 1; i != len(fields); i++ {
<mask> host := fields[i]
<mask> if len(host) == 0 {
<mask> break
<mask> }
<mask>
<mask> sharp := strings.IndexByte(host, '#')
<mask> if sharp == 0 {
<mask> // Skip the comments... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e17e1f20fbd88b6af9be0e60e658aad720e32ba8 | internal/aghnet/etchostscontainer.go |
<mask> }
<mask>
<mask> ehc.updateTable(table, host, ip)
<mask> ehc.updateTableRev(tableRev, host, ip)
<mask> if sharp >= 0 {
<mask> // Skip the comments again.
<mask> break
<mask> }
<mask> }
<mask> }
<mask> }
<mask>
<mask> // onlyWrites is a filter for (*fsnotify.Watcher).Events... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e17e1f20fbd88b6af9be0e60e658aad720e32ba8 | internal/aghnet/etchostscontainer.go | |
err = s.Err()
if err != nil {
log.Error("etchostscontainer: %s", err)
} | <mask> }
<mask> }
<mask> }
<mask>
<mask> // onlyWrites is a filter for (*fsnotify.Watcher).Events.
<mask> func (ehc *EtcHostsContainer) onlyWrites() {
<mask> for event := range ehc.watcher.Events {
</s> Pull request: all: imp cyclo in new code
Updates #2646,
Squashed commit of the following:
commit af6a... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e17e1f20fbd88b6af9be0e60e658aad720e32ba8 | internal/aghnet/etchostscontainer.go |
// findIfaceLine scans s until it finds the line that declares an interface with
// the given name. If findIfaceLine can't find the line, it returns false.
func findIfaceLine(s *bufio.Scanner, name string) (ok bool) {
for s.Scan() {
line := strings.TrimSpace(s.Text())
fields := strings.Fields(line)
if len(field... | <mask> return false, ErrNoStaticIPInfo
<mask> }
<mask>
<mask> // dhcpcdStaticConfig checks if interface is configured by /etc/dhcpcd.conf to
<mask> // have a static IP.
<mask> func dhcpcdStaticConfig(r io.Reader, ifaceName string) (has bool, err error) {
<mask> s := bufio.NewScanner(r)
<mask> ifaceFound := ... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e17e1f20fbd88b6af9be0e60e658aad720e32ba8 | internal/aghnet/net_linux.go |
ifaceFound := findIfaceLine(s, ifaceName)
if !ifaceFound {
return false, s.Err()
} | <mask> // dhcpcdStaticConfig checks if interface is configured by /etc/dhcpcd.conf to
<mask> // have a static IP.
<mask> func dhcpcdStaticConfig(r io.Reader, ifaceName string) (has bool, err error) {
<mask> s := bufio.NewScanner(r)
<mask> var withinInterfaceCtx bool
<mask>
<mask> for s.Scan() {
<mask> lin... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e17e1f20fbd88b6af9be0e60e658aad720e32ba8 | internal/aghnet/net_linux.go |
<mask> var withinInterfaceCtx bool
<mask>
<mask> for s.Scan() {
<mask> line := strings.TrimSpace(s.Text())
<mask>
<mask> if withinInterfaceCtx && len(line) == 0 {
<mask> // An empty line resets our state.
<mask> withinInterfaceCtx = false
<mask> }
<mask>
<mask> if len(line) == 0 || line[0]... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e17e1f20fbd88b6af9be0e60e658aad720e32ba8 | internal/aghnet/net_linux.go | |
if len(fields) >= 2 &&
fields[0] == "static" &&
strings.HasPrefix(fields[1], "ip_address=") {
return true, s.Err() | <mask> continue
<mask> }
<mask>
<mask> fields := strings.Fields(line)
<mask>
<mask> if withinInterfaceCtx {
<mask> if len(fields) >= 2 && fields[0] == "static" && strings.HasPrefix(fields[1], "ip_address=") {
<mask> return true, nil
<mask> }
<mask> if len(fields) > 0 && fields[0] == "i... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e17e1f20fbd88b6af9be0e60e658aad720e32ba8 | internal/aghnet/net_linux.go |
if len(fields) > 0 && fields[0] == "interface" {
// Another interface found.
break | <mask> }
<mask> continue
<mask> }
<mask>
<mask> if len(fields) == 2 && fields[0] == "interface" && fields[1] == ifaceName {
<mask> // The interface found.
<mask> withinInterfaceCtx = true
<mask> }
<mask> }
<mask>
<mask> return false, s.Err()
<mask> }
</s> Pull request: all: imp cyclo ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e17e1f20fbd88b6af9be0e60e658aad720e32ba8 | internal/aghnet/net_linux.go |
<mask>
<mask> import (
<mask> "time"
<mask>
<mask> "github.com/AdguardTeam/golibs/errors"
<mask> "github.com/AdguardTeam/golibs/log"
<mask> )
<mask>
<mask> // DefaultRefreshIvl is the default period of time between refreshing cached
<mask> // addresses.
</s> Pull request: all: imp cyclo in new code
Up... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e17e1f20fbd88b6af9be0e60e658aad720e32ba8 | internal/aghnet/systemresolvers.go | |
<mask> // safe for concurrent use.
<mask> refresh() (err error)
<mask> }
<mask>
<mask> const (
<mask> // errBadAddrPassed is returned when dialFunc can't parse an IP address.
<mask> errBadAddrPassed errors.Error = "the passed string is not a valid IP address"
<mask>
<mask> // errFakeDial is an error whi... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e17e1f20fbd88b6af9be0e60e658aad720e32ba8 | internal/aghnet/systemresolvers.go | |
const (
// errBadAddrPassed is returned when dialFunc can't parse an IP address.
errBadAddrPassed errors.Error = "the passed string is not a valid IP address"
// errFakeDial is an error which dialFunc is expected to return.
errFakeDial errors.Error = "this error signals the successful dialFunc work"
// errUnexpe... | <mask> addrs *aghstrings.Set
<mask> addrsLock sync.RWMutex
<mask> }
<mask>
<mask> func (sr *systemResolvers) refresh() (err error) {
<mask> defer func() { err = errors.Annotate(err, "systemResolvers: %w") }()
<mask>
<mask> _, err = sr.resolver.LookupHost(context.Background(), sr.hostGenFunc())
</s> P... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e17e1f20fbd88b6af9be0e60e658aad720e32ba8 | internal/aghnet/systemresolvers_others.go |
go writeExit(stdin) | <mask> if err != nil {
<mask> return nil, fmt.Errorf("limiting stdout reader: %w", err)
<mask> }
<mask>
<mask> go func() {
<mask> defer log.OnPanic("systemResolvers")
<mask>
<mask> defer func() {
<mask> derr := stdin.Close()
<mask> if derr != nil {
<mask> log.Error("systemResolvers: clos... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e17e1f20fbd88b6af9be0e60e658aad720e32ba8 | internal/aghnet/systemresolvers_windows.go |
<mask> if err != nil {
<mask> return nil, fmt.Errorf("start command executing: %w", err)
<mask> }
<mask>
<mask> // The output of nslookup looks like this:
<mask> //
<mask> // Default Server: 192-168-1-1.qualified.domain.ru
<mask> // Address: 192.168.1.1
<mask>
<mask> var possibleIPs []string
<ma... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e17e1f20fbd88b6af9be0e60e658aad720e32ba8 | internal/aghnet/systemresolvers_windows.go | |
addrs = scanAddrs(s) | <mask> // Address: 192.168.1.1
<mask>
<mask> var possibleIPs []string
<mask> s := bufio.NewScanner(stdoutLimited)
<mask> for s.Scan() {
<mask> line := s.Text()
<mask> if len(line) == 0 {
<mask> continue
<mask> }
<mask>
<mask> fields := strings.Fields(line)
<mask> if len(fields) != 2 || f... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
... | https://github.com/AdguardTeam/AdGuardHome/commit/e17e1f20fbd88b6af9be0e60e658aad720e32ba8 | internal/aghnet/systemresolvers_windows.go |
<mask> )
<mask>
<mask> // TestUpstream is a mock of real upstream.
<mask> type TestUpstream struct {
<mask> // Addr is the address for Address method.
<mask> Addr string
<mask> // CName is a map of hostname to canonical name.
<mask> CName map[string]string
<mask> // IPv4 is a map of hostname to IPv4.
<m... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e17e1f20fbd88b6af9be0e60e658aad720e32ba8 | internal/aghtest/upstream.go | |
// Addr is the address for Address method.
Addr string | <mask> IPv6 map[string][]net.IP
<mask> // Reverse is a map of address to domain name.
<mask> Reverse map[string][]string
<mask> }
<mask>
<mask> // Exchange implements upstream.Upstream interface for *TestUpstream.
<mask> //
<mask> // TODO(a.garipov): Split further into handlers.
<mask> func (u *TestUpstrea... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e17e1f20fbd88b6af9be0e60e658aad720e32ba8 | internal/aghtest/upstream.go |
//
// TODO(a.garipov): Split further into handlers. | <mask> }
<mask>
<mask> // Exchange implements upstream.Upstream interface for *TestUpstream.
<mask> func (u *TestUpstream) Exchange(m *dns.Msg) (resp *dns.Msg, err error) {
<mask> resp = &dns.Msg{}
<mask> resp.SetReply(m)
<mask>
<mask> if len(m.Question) == 0 {
<mask> return nil, fmt.Errorf("question sh... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e17e1f20fbd88b6af9be0e60e658aad720e32ba8 | internal/aghtest/upstream.go |
ans := &dns.CNAME{ | <mask> }
<mask> name := m.Question[0].Name
<mask>
<mask> if cname, ok := u.CName[name]; ok {
<mask> resp.Answer = append(resp.Answer, &dns.CNAME{
<mask> Hdr: dns.RR_Header{
<mask> Name: name,
<mask> Rrtype: dns.TypeCNAME,
<mask> },
<mask> Target: cname,
</s> Pull request: all: imp cy... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e17e1f20fbd88b6af9be0e60e658aad720e32ba8 | internal/aghtest/upstream.go |
}
resp.Answer = append(resp.Answer, ans) | <mask> Name: name,
<mask> Rrtype: dns.TypeCNAME,
<mask> },
<mask> Target: cname,
<mask> })
<mask> }
<mask>
<mask> var hasRec bool
<mask> var rrType uint16
<mask> var ips []net.IP
</s> Pull request: all: imp cyclo in new code
Updates #2646,
Squashed commit of the following:
commit af... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e17e1f20fbd88b6af9be0e60e658aad720e32ba8 | internal/aghtest/upstream.go |
rrType := m.Question[0].Qtype
hdr := dns.RR_Header{
Name: name,
Rrtype: rrType,
}
var names []string | <mask> Target: cname,
<mask> })
<mask> }
<mask>
<mask> var hasRec bool
<mask> var rrType uint16
<mask> var ips []net.IP
<mask> switch m.Question[0].Qtype {
<mask> case dns.TypeA:
<mask> rrType = dns.TypeA
<mask> if ipv4addr, ok := u.IPv4[name]; ok {
</s> Pull request: all: imp cyclo in new c... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e17e1f20fbd88b6af9be0e60e658aad720e32ba8 | internal/aghtest/upstream.go |
ips = u.IPv4[name] | <mask> var rrType uint16
<mask> var ips []net.IP
<mask> switch m.Question[0].Qtype {
<mask> case dns.TypeA:
<mask> rrType = dns.TypeA
<mask> if ipv4addr, ok := u.IPv4[name]; ok {
<mask> hasRec = true
<mask> ips = ipv4addr
<mask> }
<mask> case dns.TypeAAAA:
<mask> rrType = dns.TypeAAAA
<ma... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e17e1f20fbd88b6af9be0e60e658aad720e32ba8 | internal/aghtest/upstream.go |
ips = u.IPv6[name] | <mask> hasRec = true
<mask> ips = ipv4addr
<mask> }
<mask> case dns.TypeAAAA:
<mask> rrType = dns.TypeAAAA
<mask> if ipv6addr, ok := u.IPv6[name]; ok {
<mask> hasRec = true
<mask> ips = ipv6addr
<mask> }
<mask> case dns.TypePTR:
<mask> names, ok := u.Reverse[name]
<mask> if !ok {
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e17e1f20fbd88b6af9be0e60e658aad720e32ba8 | internal/aghtest/upstream.go |
names = u.Reverse[name]
}
for _, ip := range ips {
var ans dns.RR
if rrType == dns.TypeA {
ans = &dns.A{
Hdr: hdr,
A: ip,
}
resp.Answer = append(resp.Answer, ans)
continue | <mask> hasRec = true
<mask> ips = ipv6addr
<mask> }
<mask> case dns.TypePTR:
<mask> names, ok := u.Reverse[name]
<mask> if !ok {
<mask> break
<mask> }
<mask>
<mask> for _, n := range names {
<mask> resp.Answer = append(resp.Answer, &dns.PTR{
<mask> Hdr: dns.RR_Header{
</s> Pull ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e17e1f20fbd88b6af9be0e60e658aad720e32ba8 | internal/aghtest/upstream.go |
ans = &dns.AAAA{
Hdr: hdr,
AAAA: ip, | <mask> if !ok {
<mask> break
<mask> }
<mask>
<mask> for _, n := range names {
<mask> resp.Answer = append(resp.Answer, &dns.PTR{
<mask> Hdr: dns.RR_Header{
<mask> Name: n,
<mask> Rrtype: rrType,
<mask> },
<mask> Ptr: n,
<mask> })
<mask> }
<mask> }
<mask>
<mask... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e17e1f20fbd88b6af9be0e60e658aad720e32ba8 | internal/aghtest/upstream.go |
resp.Answer = append(resp.Answer, ans) | <mask> AAAA: ip,
<mask> }
<mask> }
<mask>
<mask> for _, n := range names {
<mask> ans := &dns.PTR{
<mask> Hdr: hdr,
</s> Pull request: all: imp cyclo in new code
Updates #2646,
Squashed commit of the following:
commit af6a6fa2b7229bc0f1c7c9083b0391a6bec7ae70
Author: Ainar Garipov <A.Garipov@AdGu... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e17e1f20fbd88b6af9be0e60e658aad720e32ba8 | internal/aghtest/upstream.go |
for _, n := range names {
ans := &dns.PTR{
Hdr: hdr,
Ptr: n,
}
resp.Answer = append(resp.Answer, ans) | <mask> })
<mask> }
<mask> }
<mask>
<mask> for _, ip := range ips {
<mask> resp.Answer = append(resp.Answer, &dns.A{
<mask> Hdr: dns.RR_Header{
<mask> Name: name,
<mask> Rrtype: rrType,
<mask> },
<mask> A: ip,
<mask> })
<mask> }
<mask>
<mask> if len(resp.Answer) == 0 {
<... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e17e1f20fbd88b6af9be0e60e658aad720e32ba8 | internal/aghtest/upstream.go |
<mask> })
<mask> }
<mask>
<mask> if len(resp.Answer) == 0 {
<mask> if hasRec {
<mask> // Set no error RCode if there are some records for
<mask> // given Qname but we didn't apply them.
<mask> resp.SetRcode(m, dns.RcodeSuccess)
<mask>
<mask> return resp, nil
<mask> }
<mask> // Set NX... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e17e1f20fbd88b6af9be0e60e658aad720e32ba8 | internal/aghtest/upstream.go | |
Hostname string
// lock protects reqNum.
lock sync.RWMutex
reqNum int
Block bool | <mask>
<mask> // TestBlockUpstream implements upstream.Upstream interface for replacing real
<mask> // upstream in tests.
<mask> type TestBlockUpstream struct {
<mask> Hostname string
<mask> Block bool
<mask> requestsCount int
<mask> lock sync.RWMutex
<mask> }
<mask>
<mask> // Exc... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e17e1f20fbd88b6af9be0e60e658aad720e32ba8 | internal/aghtest/upstream.go |
u.reqNum++ | <mask> // pair.
<mask> func (u *TestBlockUpstream) Exchange(r *dns.Msg) (*dns.Msg, error) {
<mask> u.lock.Lock()
<mask> defer u.lock.Unlock()
<mask> u.requestsCount++
<mask>
<mask> hash := sha256.Sum256([]byte(u.Hostname))
<mask> hashToReturn := hex.EncodeToString(hash[:])
<mask> if !u.Block {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e17e1f20fbd88b6af9be0e60e658aad720e32ba8 | internal/aghtest/upstream.go |
return u.reqNum | <mask> func (u *TestBlockUpstream) RequestsCount() int {
<mask> u.lock.Lock()
<mask> defer u.lock.Unlock()
<mask>
<mask> return u.requestsCount
<mask> }
<mask>
<mask> // TestErrUpstream implements upstream.Upstream interface for replacing real
<mask> // upstream in tests.
<mask> type TestErrUpstream stru... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e17e1f20fbd88b6af9be0e60e658aad720e32ba8 | internal/aghtest/upstream.go |
assert.Equal(t, tc.want, pctx.Res.Answer[0].(*dns.PTR).Ptr) | <mask> require.NotNil(t, pctx.Res)
<mask> require.Len(t, pctx.Res.Answer, tc.wantLen)
<mask>
<mask> if tc.wantLen > 0 {
<mask> assert.Equal(t, tc.want, pctx.Res.Answer[0].Header().Name)
<mask> }
<mask> })
<mask> }
<mask> }
<mask>
</s> Pull request: all: imp cyclo in new code
Updates #26... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e17e1f20fbd88b6af9be0e60e658aad720e32ba8 | internal/dnsforward/dns_test.go |
assert.Equal(t, locDomain, proxyCtx.Res.Answer[0].(*dns.PTR).Ptr) | <mask> rc := s.processLocalPTR(dnsCtx)
<mask> require.Equal(t, resultCodeSuccess, rc)
<mask> require.NotEmpty(t, proxyCtx.Res.Answer)
<mask>
<mask> assert.Equal(t, locDomain, proxyCtx.Res.Answer[0].Header().Name)
<mask> })
<mask>
<mask> t.Run("disabled", func(t *testing.T) {
<mask> setup(false)
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e17e1f20fbd88b6af9be0e60e658aad720e32ba8 | internal/dnsforward/dns_test.go |
resolver := s.internalProxy | <mask> Req: req,
<mask> StartTime: time.Now(),
<mask> }
<mask>
<mask> var resolver *proxy.Proxy = s.internalProxy
<mask> if s.subnetDetector.IsLocallyServedNetwork(ip) {
<mask> if !s.conf.UsePrivateRDNS {
<mask> return "", nil
<mask> }
<mask>
</s> Pull request: all: imp cyclo in new cod... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e17e1f20fbd88b6af9be0e60e658aad720e32ba8 | internal/dnsforward/dnsforward.go |
dispatch(refreshFiltersRequest()); | <mask> export const refreshFiltersFailure = createAction('FILTERING_REFRESH_FAILURE');
<mask> export const refreshFiltersSuccess = createAction('FILTERING_REFRESH_SUCCESS');
<mask>
<mask> export const refreshFilters = () => async (dispatch) => {
<mask> dispatch(refreshFiltersRequest);
<mask> dispatch(sho... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e1bb428a6a32e43ffad711ab641cd37eeec91769 | client/src/actions/index.js |
dispatch(refreshFiltersSuccess()); | <mask> dispatch(refreshFiltersRequest);
<mask> dispatch(showLoading());
<mask> try {
<mask> const refreshText = await apiClient.refreshFilters();
<mask> dispatch(refreshFiltersSuccess);
<mask>
<mask> if (refreshText.includes('OK')) {
<mask> if (refreshText.includ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e1bb428a6a32e43ffad711ab641cd37eeec91769 | client/src/actions/index.js |
position: fixed;
top: 0;
left: 0; | <mask> }
<mask> }
<mask>
<mask> .loading-bar {
<mask> position: absolute;
<mask> z-index: 103;
<mask> height: 3px;
<mask> background: linear-gradient(45deg, rgba(99, 125, 120, 1) 0%, rgba(88, 177, 101, 1) 100%);
<mask> }
</s> Only allow single click on buttons
Closes #544 </s> remove ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e1bb428a6a32e43ffad711ab641cd37eeec91769 | client/src/components/App/index.css |
const { protectionEnabled, processingProtection } = this.props.dashboard; | <mask> this.props.getTopStats();
<mask> }
<mask>
<mask> getToggleFilteringButton = () => {
<mask> const { protectionEnabled } = this.props.dashboard;
<mask> const buttonText = protectionEnabled ? 'disable_protection' : 'enable_protection';
<mask> const buttonClass = prote... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e1bb428a6a32e43ffad711ab641cd37eeec91769 | client/src/components/Dashboard/index.js |
<button
type="button"
className={`btn btn-sm mr-2 ${buttonClass}`}
onClick={() => this.props.toggleProtection(protectionEnabled)}
disabled={processingProtection}
> | <mask> const buttonText = protectionEnabled ? 'disable_protection' : 'enable_protection';
<mask> const buttonClass = protectionEnabled ? 'btn-gray' : 'btn-success';
<mask>
<mask> return (
<mask> <button type="button" className={`btn btn-sm mr-2 ${buttonClass}`} onClick={() => t... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e1bb428a6a32e43ffad711ab641cd37eeec91769 | client/src/components/Dashboard/index.js |
processingProtection: PropTypes.bool, | <mask> isCoreRunning: PropTypes.bool,
<mask> getFiltering: PropTypes.func,
<mask> toggleProtection: PropTypes.func,
<mask> t: PropTypes.func,
<mask> };
<mask>
<mask> export default withNamespaces()(Dashboard);
</s> Only allow single click on buttons
Closes #544 </s> remove dispatch(refresh... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e1bb428a6a32e43ffad711ab641cd37eeec91769 | client/src/components/Dashboard/index.js |
const { filters, userRules, processingRefreshFilters } = this.props.filtering; | <mask> ];
<mask>
<mask> render() {
<mask> const { t } = this.props;
<mask> const { filters, userRules } = this.props.filtering;
<mask> return (
<mask> <div>
<mask> <PageTitle title={ t('filters') } />
<mask> <div className="content">
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e1bb428a6a32e43ffad711ab641cd37eeec91769 | client/src/components/Filters/index.js |
<button
className="btn btn-success btn-standart mr-2"
type="submit"
onClick={this.props.toggleFilteringModal}
>
... | <mask> rowsText={ t('rows_table_footer_text') }
<mask> noDataText={ t('no_filters_added') }
<mask> />
<mask> <div className="card-actions">
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e1bb428a6a32e43ffad711ab641cd37eeec91769 | client/src/components/Filters/index.js |
processingAddFilter={this.props.filtering.processingAddFilter} | <mask> addFilter={this.props.addFilter}
<mask> isFilterAdded={this.props.filtering.isFilterAdded}
<mask> title={ t('new_filter_btn') }
<mask> inputDescription={ t('enter_valid_filter_url') }
<mask> />
<mask> ... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e1bb428a6a32e43ffad711ab641cd37eeec91769 | client/src/components/Filters/index.js |
processingAddFilter: PropTypes.bool,
processingRefreshFilters: PropTypes.bool, | <mask> userRules: PropTypes.string,
<mask> filters: PropTypes.array,
<mask> isFilteringModalOpen: PropTypes.bool.isRequired,
<mask> isFilterAdded: PropTypes.bool,
<mask> }),
<mask> removeFilter: PropTypes.func.isRequired,
<mask> toggleFilterStatus: PropTypes.func.isReq... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e1bb428a6a32e43ffad711ab641cd37eeec91769 | client/src/components/Filters/index.js |
disabled={this.props.filtering.processingRules} | <mask> <button
<mask> type="button"
<mask> className={`btn btn-sm ${buttonClass}`}
<mask> onClick={() => this.toggleBlocking(buttonType, domain)}
<mask> >
<mask> <Trans>{buttonText}</Trans>
<mask> ... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e1bb428a6a32e43ffad711ab641cd37eeec91769 | client/src/components/Logs/index.js |
renderButtons(queryLogEnabled, logStatusProcessing) { | <mask> const dataBlob = new Blob([jsonStr], { type: 'text/plain;charset=utf-8' });
<mask> saveAs(dataBlob, DOWNLOAD_LOG_FILENAME);
<mask> };
<mask>
<mask> renderButtons(queryLogEnabled) {
<mask> if (queryLogEnabled) {
<mask> return (
<mask> <Fragment>... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e1bb428a6a32e43ffad711ab641cd37eeec91769 | client/src/components/Logs/index.js |
disabled={logStatusProcessing} | <mask> className="btn btn-gray btn-sm mr-2"
<mask> type="submit"
<mask> onClick={() => this.props.toggleLogStatus(queryLogEnabled)}
<mask> ><Trans>disabled_log_btn</Trans></button>
<mask> <button
<mask>... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e1bb428a6a32e43ffad711ab641cd37eeec91769 | client/src/components/Logs/index.js |
disabled={logStatusProcessing} | <mask> <button
<mask> className="btn btn-success btn-sm mr-2"
<mask> type="submit"
<mask> onClick={() => this.props.toggleLogStatus(queryLogEnabled)}
<mask> ><Trans>enabled_log_btn</Trans></button>
<mask> );
<mask> }
<mask>
<m... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e1bb428a6a32e43ffad711ab641cd37eeec91769 | client/src/components/Logs/index.js |
{this.renderButtons(queryLogEnabled, dashboard.logStatusProcessing)} | <mask> return (
<mask> <Fragment>
<mask> <PageTitle title={ t('query_log') } subtitle={ t('last_dns_queries') }>
<mask> <div className="page-title__actions">
<mask> {this.renderButtons(queryLogEnabled)}
<mask> </di... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e1bb428a6a32e43ffad711ab641cd37eeec91769 | client/src/components/Logs/index.js |
processingRules: PropTypes.bool,
logStatusProcessing: PropTypes.bool, | <mask> setRules: PropTypes.func,
<mask> addSuccessToast: PropTypes.func,
<mask> t: PropTypes.func,
<mask> };
<mask>
<mask> export default withNamespaces()(Logs);
</s> Only allow single click on buttons
Closes #544 </s> remove dispatch(refreshFiltersRequest);
</s> add dispatch(refreshFilter... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e1bb428a6a32e43ffad711ab641cd37eeec91769 | client/src/components/Logs/index.js |
const { config, active, processingDhcp } = this.props.dhcp; | <mask> this.props.findActiveDhcp(config.interface_name);
<mask> }
<mask>
<mask> getToggleDhcpButton = () => {
<mask> const { config, active } = this.props.dhcp;
<mask> const activeDhcpFound = active && active.found;
<mask> const filledConfig = Object.keys(config).every((k... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/e1bb428a6a32e43ffad711ab641cd37eeec91769 | client/src/components/Settings/Dhcp/index.js |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.