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 |
|---|---|---|---|---|
"dev": true | <mask> },
<mask> "safe-buffer": {
<mask> "version": "5.1.2",
<mask> "bundled": true,
<mask> "dev": true,
<mask> "optional": true
<mask> },
<mask> "safer-buffer": {
<mask> "version": "2.1.2",
<mask> "bundled": true,
<m... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bf410c81ae30e2ac0a9064cd8e890449e29d34db | client/package-lock.json |
<mask> "string-width": {
<mask> "version": "1.0.2",
<mask> "bundled": true,
<mask> "dev": true,
<mask> "optional": true,
<mask> "requires": {
<mask> "code-point-at": "^1.0.0",
<mask> "is-fullwidth-code-point": "^1.0.0",
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bf410c81ae30e2ac0a9064cd8e890449e29d34db | client/package-lock.json | |
<mask> "strip-ansi": {
<mask> "version": "3.0.1",
<mask> "bundled": true,
<mask> "dev": true,
<mask> "optional": true,
<mask> "requires": {
<mask> "ansi-regex": "^2.0.0"
<mask> }
<mask> },
<mask> "strip-json-commen... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bf410c81ae30e2ac0a9064cd8e890449e29d34db | client/package-lock.json | |
"dev": true | <mask> },
<mask> "wrappy": {
<mask> "version": "1.0.2",
<mask> "bundled": true,
<mask> "dev": true,
<mask> "optional": true
<mask> },
<mask> "yallist": {
<mask> "version": "3.0.3",
<mask> "bundled": true,
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bf410c81ae30e2ac0a9064cd8e890449e29d34db | client/package-lock.json |
"dev": true | <mask> },
<mask> "yallist": {
<mask> "version": "3.0.3",
<mask> "bundled": true,
<mask> "dev": true,
<mask> "optional": true
<mask> }
<mask> }
<mask> },
<mask> "function-bind": {
<mask> "version": "1.1.1",
</s> + client: add... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bf410c81ae30e2ac0a9064cd8e890449e29d34db | client/package-lock.json |
"react-side-effect": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/react-side-effect/-/react-side-effect-1.2.0.tgz",
"integrity": "sha512-v1ht1aHg5k/thv56DRcjw+WtojuuDHFUgGfc+bFHOWsF4ZK6C2V57DO0Or0GPsg6+LSTE0M6Ry/gfzhzSwbc5w==",
"requires": {
"shallowequal": "^1.0.1"
... | <mask> "prop-types": "^15.6.0"
<mask> }
<mask> },
<mask> "react-table": {
<mask> "version": "6.10.3",
<mask> "resolved": "https://registry.npmjs.org/react-table/-/react-table-6.10.3.tgz",
<mask> "integrity": "sha512-sVlq2/rxVaQJywGD95+qGiMr/SMHFIFnXdx619BLOWE/Os5FOGtV6pQJN... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bf410c81ae30e2ac0a9064cd8e890449e29d34db | client/package-lock.json |
"shallowequal": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/shallowequal/-/shallowequal-1.1.0.tgz",
"integrity": "sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ=="
}, | <mask> "safe-buffer": "^5.0.1"
<mask> }
<mask> },
<mask> "shebang-command": {
<mask> "version": "1.2.0",
<mask> "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz",
<mask> "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=",
</s> + client: ad... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bf410c81ae30e2ac0a9064cd8e890449e29d34db | client/package-lock.json |
"react-helmet": "^5.2.1", | <mask> "react-click-outside": "^3.0.1",
<mask> "react-dom": "^16.4.0",
<mask> "react-i18next": "^8.2.0",
<mask> "react-modal": "^3.4.5",
<mask> "react-redux": "^5.0.7",
<mask> "react-redux-loading-bar": "^4.0.7",
<mask> "react-router-dom": "^4.2.2",
</s> + client: add X-DNS-Prefetch-... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bf410c81ae30e2ac0a9064cd8e890449e29d34db | client/package.json |
import { Helmet } from 'react-helmet'; | <mask> import { Trans, withNamespaces } from 'react-i18next';
<mask> import { HashLink as Link } from 'react-router-hash-link';
<mask>
<mask> import {
<mask> formatTime,
<mask> formatDateTime,
</s> + client: add X-DNS-Prefetch-Control meta tag </s> remove "optional": true,
</s> add </s> remo... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bf410c81ae30e2ac0a9064cd8e890449e29d34db | client/src/components/Logs/index.js |
<Helmet>
<meta httpEquiv="x-dns-prefetch-control" content="off" />
</Helmet> | <mask> );
<mask>
<mask> return (
<mask> <Fragment>
<mask> <PageTitle title={t('query_log')}>{refreshButton}</PageTitle>
<mask> {enabled && processingGetConfig && <Loading />}
<mask> {enabled && !processingGetConfig && (
<mask> ... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bf410c81ae30e2ac0a9064cd8e890449e29d34db | client/src/components/Logs/index.js |
setDNSServers(&w, r, true)
}
func handleSetBootstrapDNS(w http.ResponseWriter, r *http.Request) {
setDNSServers(&w, r, false)
}
// setDNSServers sets upstream and bootstrap DNS servers
func setDNSServers(w *http.ResponseWriter, r *http.Request, upstreams bool) { | <mask> // -----------------------
<mask>
<mask> func handleSetUpstreamDNS(w http.ResponseWriter, r *http.Request) {
<mask> body, err := ioutil.ReadAll(r.Body)
<mask> if err != nil {
<mask> errorText := fmt.Sprintf("Failed to read request body: %s", err)
<mask> log.Println(errorText)
<mask> http.Error(*... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bf893d488afbb306e341f5bcc8e651053d92de97 | control.go |
http.Error(*w, errorText, http.StatusBadRequest) | <mask> body, err := ioutil.ReadAll(r.Body)
<mask> if err != nil {
<mask> errorText := fmt.Sprintf("Failed to read request body: %s", err)
<mask> log.Println(errorText)
<mask> http.Error(w, errorText, http.StatusBadRequest)
<mask> return
<mask> }
<mask> // if empty body -- user is asking for default ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bf893d488afbb306e341f5bcc8e651053d92de97 | control.go |
// bootstrap servers are plain DNS only. We should remove tls:// https:// and sdns:// hosts from slice
bootstraps := []string{}
if !upstreams && len(hosts) > 0 {
for _, host := range hosts {
err = checkBootstrapDNS(host)
if err != nil {
log.Tracef("%s can not be used as bootstrap DNS cause: %s", host, er... | <mask> }
<mask> // if empty body -- user is asking for default servers
<mask> hosts := strings.Fields(string(body))
<mask>
<mask> if len(hosts) == 0 {
<mask> config.DNS.UpstreamDNS = defaultDNS
<mask> } else {
<mask> config.DNS.UpstreamDNS = hosts
<mask> }
<mask>
<mask> err = writeAllConfigs()
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bf893d488afbb306e341f5bcc8e651053d92de97 | control.go |
if count == 0 {
config.DNS.BootstrapDNS = defaultBootstrap
} else {
config.DNS.BootstrapDNS = bootstraps
} | <mask>
<mask> if len(hosts) == 0 {
<mask> config.DNS.UpstreamDNS = defaultDNS
<mask> } else {
<mask> config.DNS.UpstreamDNS = hosts
<mask> }
<mask>
<mask> err = writeAllConfigs()
<mask> if err != nil {
<mask> errorText := fmt.Sprintf("Couldn't write config file: %s", err)
</s> Refactoring for se... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bf893d488afbb306e341f5bcc8e651053d92de97 | control.go |
http.Error(*w, errorText, http.StatusInternalServerError) | <mask> err = writeAllConfigs()
<mask> if err != nil {
<mask> errorText := fmt.Sprintf("Couldn't write config file: %s", err)
<mask> log.Println(errorText)
<mask> http.Error(w, errorText, http.StatusInternalServerError)
<mask> return
<mask> }
<mask> err = reconfigureDNSServer()
<mask> if err != nil... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bf893d488afbb306e341f5bcc8e651053d92de97 | control.go |
http.Error(*w, errorText, http.StatusInternalServerError) | <mask> err = reconfigureDNSServer()
<mask> if err != nil {
<mask> errorText := fmt.Sprintf("Couldn't reconfigure the DNS server: %s", err)
<mask> log.Println(errorText)
<mask> http.Error(w, errorText, http.StatusInternalServerError)
<mask> return
<mask> }
<mask> _, err = fmt.Fprintf(w, "OK %d server... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bf893d488afbb306e341f5bcc8e651053d92de97 | control.go |
_, err = fmt.Fprintf(*w, "OK %d servers\n", count) | <mask> log.Println(errorText)
<mask> http.Error(w, errorText, http.StatusInternalServerError)
<mask> return
<mask> }
<mask> _, err = fmt.Fprintf(w, "OK %d servers\n", len(hosts))
<mask> if err != nil {
<mask> errorText := fmt.Sprintf("Couldn't write body: %s", err)
<mask> log.Println(errorText)
<m... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bf893d488afbb306e341f5bcc8e651053d92de97 | control.go |
http.Error(*w, errorText, http.StatusInternalServerError)
}
}
func checkBootstrapDNS(host string) error {
// Check if host is ip without port
if net.ParseIP(host) != nil {
return nil | <mask> _, err = fmt.Fprintf(w, "OK %d servers\n", len(hosts))
<mask> if err != nil {
<mask> errorText := fmt.Sprintf("Couldn't write body: %s", err)
<mask> log.Println(errorText)
<mask> http.Error(w, errorText, http.StatusInternalServerError)
<mask> }
<mask> }
<mask>
<mask> func handleTestUpstreamDNS... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bf893d488afbb306e341f5bcc8e651053d92de97 | control.go |
// Check if host is ip with port
_, _, err := net.SplitHostPort(host)
return err | <mask> return nil
<mask> }
<mask> }
<mask>
<mask> func handleTestUpstreamDNS(w http.ResponseWriter, r *http.Request) {
<mask> body, err := ioutil.ReadAll(r.Body)
<mask> if err != nil {
</s> Refactoring for set upstream and bootstrap DNS </s> remove http.Error(w, errorText, http.StatusInternalServerError... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bf893d488afbb306e341f5bcc8e651053d92de97 | control.go |
<mask> log.Printf("DNS %s works OK", input)
<mask> return nil
<mask> }
<mask>
<mask> func handleSetBootstrapDNS(w http.ResponseWriter, r *http.Request) {
<mask> body, err := ioutil.ReadAll(r.Body)
<mask> if err != nil {
<mask> errorText := fmt.Sprintf("Failed to read request body: %s", err)
<mask> log... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"re... | https://github.com/AdguardTeam/AdGuardHome/commit/bf893d488afbb306e341f5bcc8e651053d92de97 | control.go | |
MANUAL_UPDATE_LINK, | <mask> CHECK_TIMEOUT,
<mask> STATUS_RESPONSE,
<mask> SETTINGS_NAMES,
<mask> FORM_NAME,
<mask> GETTING_STARTED_LINK,
<mask> } from '../helpers/constants';
<mask> import { areEqualVersions } from '../helpers/version';
<mask> import { getTlsStatus } from './encryption';
<mask> import apiClient... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bf9b35b9c6a29b3c3f6535a8db993b879ab94d37 | client/src/actions/index.js |
a: <a href={MANUAL_UPDATE_LINK} target="_blank" | <mask> dispatch(getUpdateRequest());
<mask> const handleRequestError = () => {
<mask> const options = {
<mask> components: {
<mask> a: <a href={GETTING_STARTED_LINK} target="_blank"
<mask> rel="noopener noreferrer" />,
<mask> },
<mask... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bf9b35b9c6a29b3c3f6535a8db993b879ab94d37 | client/src/actions/index.js |
export const MANUAL_UPDATE_LINK = 'https://github.com/AdguardTeam/AdGuardHome/wiki/FAQ#manual-update'; | <mask>
<mask> export const PRIVACY_POLICY_LINK = 'https://adguard.com/privacy/home.html';
<mask> export const PORT_53_FAQ_LINK = 'https://github.com/AdguardTeam/AdGuardHome/wiki/FAQ#bindinuse';
<mask> export const UPSTREAM_CONFIGURATION_WIKI_LINK = 'https://github.com/AdguardTeam/AdGuardHome/wiki/Configuration#ups... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bf9b35b9c6a29b3c3f6535a8db993b879ab94d37 | client/src/helpers/constants.js |
reqIP := req.RequestedIPAddress()
if len(reqIP) != 0 && !reqIP.Equal(lease.IP) { | <mask>
<mask> s.conf.notify(LeaseChangedDBStore)
<mask>
<mask> } else {
<mask> reqIP := req.Options.Get(dhcpv4.OptionRequestedIPAddress)
<mask> if len(reqIP) != 0 &&
<mask> !bytes.Equal(reqIP, lease.IP) {
<mask> log.Debug("dhcpv4: different RequestedIP: %v != %v", reqIP, lease.IP)
<mask> }
<m... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfbf73f3cddabed252fe1efe061de1f441f0b5b4 | internal/dhcpd/v4.go |
reqIP := req.RequestedIPAddress() | <mask> // Return false if we don't need to reply
<mask> func (s *v4Server) processRequest(req, resp *dhcpv4.DHCPv4) (*Lease, bool) {
<mask> var lease *Lease
<mask> mac := req.ClientHWAddr
<mask> hostname := req.Options.Get(dhcpv4.OptionHostName)
<mask> reqIP := req.Options.Get(dhcpv4.OptionRequestedIPAddress)... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfbf73f3cddabed252fe1efe061de1f441f0b5b4 | internal/dhcpd/v4.go |
sid := req.ServerIdentifier()
if len(sid) != 0 && !sid.Equal(s.conf.dnsIPAddrs[0]) {
log.Debug("dhcpv4: bad OptionServerIdentifier in request message for %s", mac)
| <mask> if reqIP == nil {
<mask> reqIP = req.ClientIPAddr
<mask> }
<mask>
<mask> sid := req.Options.Get(dhcpv4.OptionServerIdentifier)
<mask> if len(sid) != 0 &&
<mask> !bytes.Equal(sid, s.conf.dnsIPAddrs[0]) {
<mask> log.Debug("dhcpv4: Bad OptionServerIdentifier in Request message for %s", mac)
<mas... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfbf73f3cddabed252fe1efe061de1f441f0b5b4 | internal/dhcpd/v4.go |
if ip4 := reqIP.To4(); ip4 == nil {
log.Debug("dhcpv4: bad OptionRequestedIPAddress in request message for %s", mac)
| <mask> log.Debug("dhcpv4: Bad OptionServerIdentifier in Request message for %s", mac)
<mask> return nil, false
<mask> }
<mask>
<mask> if len(reqIP) != 4 {
<mask> log.Debug("dhcpv4: Bad OptionRequestedIPAddress in Request message for %s", mac)
<mask> return nil, false
<mask> }
<mask>
<mask> s.lea... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfbf73f3cddabed252fe1efe061de1f441f0b5b4 | internal/dhcpd/v4.go |
if !l.IP.Equal(reqIP) { | <mask>
<mask> s.leasesLock.Lock()
<mask> for _, l := range s.leases {
<mask> if bytes.Equal(l.HWAddr, mac) {
<mask> if !bytes.Equal(l.IP, reqIP) {
<mask> s.leasesLock.Unlock()
<mask> log.Debug("dhcpv4: Mismatched OptionRequestedIPAddress in Request message for %s", mac)
<mask> return nil, tr... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfbf73f3cddabed252fe1efe061de1f441f0b5b4 | internal/dhcpd/v4.go |
log.Debug("dhcpv4: mismatched OptionRequestedIPAddress in request message for %s", mac)
| <mask> for _, l := range s.leases {
<mask> if bytes.Equal(l.HWAddr, mac) {
<mask> if !bytes.Equal(l.IP, reqIP) {
<mask> s.leasesLock.Unlock()
<mask> log.Debug("dhcpv4: Mismatched OptionRequestedIPAddress in Request message for %s", mac)
<mask> return nil, true
<mask> }
<mask>
<mask> le... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfbf73f3cddabed252fe1efe061de1f441f0b5b4 | internal/dhcpd/v4.go |
log.Debug("dhcpv4: no lease for %s", mac)
| <mask> }
<mask> s.leasesLock.Unlock()
<mask>
<mask> if lease == nil {
<mask> log.Debug("dhcpv4: No lease for %s", mac)
<mask> return nil, true
<mask> }
<mask>
<mask> if lease.Expiry.Unix() != leaseExpireStatic {
<mask> lease.Hostname = string(hostname)
</s> Pull request: dhcpd: actually use host... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfbf73f3cddabed252fe1efe061de1f441f0b5b4 | internal/dhcpd/v4.go |
lease.Hostname = req.HostName() | <mask> return nil, true
<mask> }
<mask>
<mask> if lease.Expiry.Unix() != leaseExpireStatic {
<mask> lease.Hostname = string(hostname)
<mask> s.commitLease(lease)
<mask> } else if len(lease.Hostname) != 0 {
<mask> o := &optFQDN{
<mask> name: lease.Hostname,
<mask> }
</s> Pull request: dhcpd: ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfbf73f3cddabed252fe1efe061de1f441f0b5b4 | internal/dhcpd/v4.go |
"github.com/AdguardTeam/AdGuardHome/internal/aghnet" | <mask> "time"
<mask>
<mask> "github.com/AdguardTeam/golibs/log"
<mask> "golang.org/x/net/icmp"
<mask> "golang.org/x/net/ipv6"
<mask> )
<mask>
</s> Pull request: dhcpd: do not assume mac addrs of 6 bytes
Closes #2828.
Squashed commit of the following:
commit 26c6cf81c32469e1c4955aafb40490c29b4d1a99
Auth... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfc7e16d84037fab30116fcc30931fb8c05980fb | internal/dhcpd/routeradv.go |
// Link-Layer Address[8/24] | <mask> // Length * 8bytes[1]
<mask> // Reserved[2]
<mask> // MTU[4]
<mask> // Option=Source link-layer address(1):
<mask> // Link-Layer Address[6]
<mask> // Option=Recursive DNS Server(25):
<mask> // Type[1]
<mask> // Length * 8bytes[1]
<mask> // Reserved[2]
<mask> // Lifet... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfc7e16d84037fab30116fcc30931fb8c05980fb | internal/dhcpd/routeradv.go |
func createICMPv6RAPacket(params icmpv6RA) (data []byte, err error) {
var lla []byte
lla, err = hwAddrToLinkLayerAddr(params.sourceLinkLayerAddress)
if err != nil {
return nil, fmt.Errorf("converting source link layer address: %w", err)
}
// TODO(a.garipov): Don't use a magic constant here. Refactor the code
... | <mask> // Length * 8bytes[1]
<mask> // Reserved[2]
<mask> // Lifetime[4]
<mask> // Addresses of IPv6 Recursive DNS Servers[16]
<mask> func createICMPv6RAPacket(params icmpv6RA) []byte {
<mask> data := make([]byte, 88)
<mask> i := 0
<mask>
<mask> // ICMPv6:
<mask>
<mask> data[i] = 134 //... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfc7e16d84037fab30116fcc30931fb8c05980fb | internal/dhcpd/routeradv.go |
copy(data[i:], lla) // Link-Layer Address[8/24]
i += len(lla) | <mask>
<mask> data[i] = 1 // Type
<mask> data[i+1] = 1 // Length
<mask> i += 2
<mask> copy(data[i:], params.sourceLinkLayerAddress) // Link-Layer Address[6]
<mask> i += 6
<mask>
<mask> // Option=Recursive DNS Server:
<mask>
<mask> data[i] = 25 // Type
<mask> data[i+1] = 3 // Length
</s> Pull r... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfc7e16d84037fab30116fcc30931fb8c05980fb | internal/dhcpd/routeradv.go |
return data, nil | <mask> binary.BigEndian.PutUint32(data[i:], 3600) // Lifetime[4]
<mask> i += 4
<mask> copy(data[i:], params.recursiveDNSServer) // Addresses of IPv6 Recursive DNS Servers[16]
<mask>
<mask> return data
<mask> }
<mask>
<mask> // Init - initialize RA module
<mask> func (ra *raCtx) Init() error {
<mask> ra... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfc7e16d84037fab30116fcc30931fb8c05980fb | internal/dhcpd/routeradv.go |
func (ra *raCtx) Init() (err error) { | <mask> return data
<mask> }
<mask>
<mask> // Init - initialize RA module
<mask> func (ra *raCtx) Init() error {
<mask> ra.stop.Store(0)
<mask> ra.conn = nil
<mask> if !(ra.raAllowSLAAC || ra.raSLAACOnly) {
<mask> return nil
<mask> }
</s> Pull request: dhcpd: do not assume mac addrs of 6 bytes
Closes... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfc7e16d84037fab30116fcc30931fb8c05980fb | internal/dhcpd/routeradv.go |
var data []byte
data, err = createICMPv6RAPacket(params)
if err != nil {
return fmt.Errorf("creating packet: %w", err)
} | <mask> }
<mask> params.prefix = make([]byte, 16)
<mask> copy(params.prefix, ra.prefixIPAddr[:8]) // /64
<mask>
<mask> data := createICMPv6RAPacket(params)
<mask>
<mask> var err error
<mask> success := false
<mask> ipAndScope := ra.ipAddr.String() + "%" + ra.ifaceName
<mask> ra.conn, err = icmp.Liste... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfc7e16d84037fab30116fcc30931fb8c05980fb | internal/dhcpd/routeradv.go |
<mask> copy(params.prefix, ra.prefixIPAddr[:8]) // /64
<mask>
<mask> data := createICMPv6RAPacket(params)
<mask>
<mask> var err error
<mask> success := false
<mask> ipAndScope := ra.ipAddr.String() + "%" + ra.ifaceName
<mask> ra.conn, err = icmp.ListenPacket("ip6:ipv6-icmp", ipAndScope)
<mask> if err ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfc7e16d84037fab30116fcc30931fb8c05980fb | internal/dhcpd/routeradv.go | |
func TestCreateICMPv6RAPacket(t *testing.T) {
wantData := []byte{
0x86, 0x00, 0x00, 0x00, 0x40, 0x40, 0x07, 0x08,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x03, 0x04, 0x40, 0xc0, 0x00, 0x00, 0x0e, 0x10,
0x00, 0x00, 0x0e, 0x10, 0x00, 0x00, 0x00, 0x00,
0x12, 0x34, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0... | <mask>
<mask> "github.com/stretchr/testify/assert"
<mask> )
<mask>
<mask> func TestRA(t *testing.T) {
<mask> data := createICMPv6RAPacket(icmpv6RA{
<mask> managedAddressConfiguration: false,
<mask> otherConfiguration: true,
<mask> mtu: 1500,
<mask> prefix: ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfc7e16d84037fab30116fcc30931fb8c05980fb | internal/dhcpd/routeradv_test.go |
assert.NoError(t, err)
assert.Equal(t, wantData, gotData) | <mask> prefixLen: 64,
<mask> recursiveDNSServer: net.ParseIP("fe80::800:27ff:fe00:0"),
<mask> sourceLinkLayerAddress: []byte{0x0a, 0x00, 0x27, 0x00, 0x00, 0x00},
<mask> })
<mask> dataCorrect := []byte{
<mask> 0x86, 0x00, 0x00, 0x00, 0x40, 0x40, 0x07, 0x08, 0x00, 0x00, 0x0... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfc7e16d84037fab30116fcc30931fb8c05980fb | internal/dhcpd/routeradv_test.go |
"github.com/AdguardTeam/AdGuardHome/internal/aghnet" | <mask> "time"
<mask>
<mask> "github.com/AdguardTeam/AdGuardHome/internal/agherr"
<mask> "github.com/AdguardTeam/golibs/log"
<mask> "github.com/go-ping/ping"
<mask> "github.com/insomniacslk/dhcp/dhcpv4"
<mask> "github.com/insomniacslk/dhcp/dhcpv4/server4"
<mask> )
</s> Pull request: dhcpd: do not assume ... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfc7e16d84037fab30116fcc30931fb8c05980fb | internal/dhcpd/v4.go |
err = aghnet.ValidateHardwareAddress(l.HWAddr)
if err != nil {
return fmt.Errorf("validating lease: %w", err) | <mask> if ip4 := l.IP.To4(); ip4 == nil {
<mask> return fmt.Errorf("invalid ip %q, only ipv4 is supported", l.IP)
<mask> }
<mask>
<mask> if len(l.HWAddr) != 6 {
<mask> return fmt.Errorf("invalid mac %q, only EUI-48 is supported", l.HWAddr)
<mask> }
<mask>
<mask> l.Expiry = time.Unix(leaseExpireStati... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfc7e16d84037fab30116fcc30931fb8c05980fb | internal/dhcpd/v4.go |
// RemoveStaticLease removes a static lease. It is safe for concurrent use.
func (s *v4Server) RemoveStaticLease(l Lease) (err error) {
defer agherr.Annotate("dhcpv4: %w", &err)
| <mask>
<mask> return nil
<mask> }
<mask>
<mask> // RemoveStaticLease removes a static lease (thread-safe)
<mask> func (s *v4Server) RemoveStaticLease(l Lease) error {
<mask> if len(l.IP) != 4 {
<mask> return fmt.Errorf("invalid IP")
<mask> }
<mask> if len(l.HWAddr) != 6 {
<mask> return fmt.Errorf("... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfc7e16d84037fab30116fcc30931fb8c05980fb | internal/dhcpd/v4.go |
err = aghnet.ValidateHardwareAddress(l.HWAddr)
if err != nil {
return fmt.Errorf("validating lease: %w", err) | <mask> func (s *v4Server) RemoveStaticLease(l Lease) error {
<mask> if len(l.IP) != 4 {
<mask> return fmt.Errorf("invalid IP")
<mask> }
<mask> if len(l.HWAddr) != 6 {
<mask> return fmt.Errorf("invalid MAC")
<mask> }
<mask>
<mask> s.leasesLock.Lock()
<mask> err := s.rmLease(l)
<mask> if err != nil... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfc7e16d84037fab30116fcc30931fb8c05980fb | internal/dhcpd/v4.go |
err = s.rmLease(l) | <mask> return fmt.Errorf("invalid MAC")
<mask> }
<mask>
<mask> s.leasesLock.Lock()
<mask> err := s.rmLease(l)
<mask> if err != nil {
<mask> s.leasesLock.Unlock()
<mask>
<mask> return err
<mask> }
</s> Pull request: dhcpd: do not assume mac addrs of 6 bytes
Closes #2828.
Squashed commit of the ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfc7e16d84037fab30116fcc30931fb8c05980fb | internal/dhcpd/v4.go |
err = aghnet.ValidateHardwareAddress(req.ClientHWAddr)
if err != nil {
log.Error("dhcpv4: invalid ClientHWAddr: %s", err)
| <mask> log.Debug("dhcpv4: dhcpv4.New: %s", err)
<mask> return
<mask> }
<mask>
<mask> if len(req.ClientHWAddr) != 6 {
<mask> log.Debug("dhcpv4: Invalid ClientHWAddr")
<mask> return
<mask> }
<mask>
<mask> r := s.process(req, resp)
<mask> if r < 0 {
</s> Pull request: dhcpd: do not assume mac ad... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfc7e16d84037fab30116fcc30931fb8c05980fb | internal/dhcpd/v4.go |
"github.com/AdguardTeam/AdGuardHome/internal/agherr"
"github.com/AdguardTeam/AdGuardHome/internal/aghnet" | <mask> "net"
<mask> "sync"
<mask> "time"
<mask>
<mask> "github.com/AdguardTeam/golibs/log"
<mask> "github.com/insomniacslk/dhcp/dhcpv6"
<mask> "github.com/insomniacslk/dhcp/dhcpv6/server6"
<mask> "github.com/insomniacslk/dhcp/iana"
<mask> )
<mask>
</s> Pull request: dhcpd: do not assume mac addrs of... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfc7e16d84037fab30116fcc30931fb8c05980fb | internal/dhcpd/v6.go |
// AddStaticLease adds a static lease. It is safe for concurrent use.
func (s *v6Server) AddStaticLease(l Lease) (err error) {
defer agherr.Annotate("dhcpv6: %w", &err)
| <mask> }
<mask> return nil
<mask> }
<mask>
<mask> // AddStaticLease - add a static lease
<mask> func (s *v6Server) AddStaticLease(l Lease) error {
<mask> if len(l.IP) != 16 {
<mask> return fmt.Errorf("invalid IP")
<mask> }
<mask> if len(l.HWAddr) != 6 {
<mask> return fmt.Errorf("invalid MAC")
</s>... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfc7e16d84037fab30116fcc30931fb8c05980fb | internal/dhcpd/v6.go |
err = aghnet.ValidateHardwareAddress(l.HWAddr)
if err != nil {
return fmt.Errorf("validating lease: %w", err) | <mask> func (s *v6Server) AddStaticLease(l Lease) error {
<mask> if len(l.IP) != 16 {
<mask> return fmt.Errorf("invalid IP")
<mask> }
<mask> if len(l.HWAddr) != 6 {
<mask> return fmt.Errorf("invalid MAC")
<mask> }
<mask>
<mask> l.Expiry = time.Unix(leaseExpireStatic, 0)
<mask>
<mask> s.leasesLock... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfc7e16d84037fab30116fcc30931fb8c05980fb | internal/dhcpd/v6.go |
err = s.rmDynamicLease(l) | <mask>
<mask> l.Expiry = time.Unix(leaseExpireStatic, 0)
<mask>
<mask> s.leasesLock.Lock()
<mask> err := s.rmDynamicLease(l)
<mask> if err != nil {
<mask> s.leasesLock.Unlock()
<mask> return err
<mask> }
<mask> s.addLease(&l)
</s> Pull request: dhcpd: do not assume mac addrs of 6 bytes
Closes #2... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfc7e16d84037fab30116fcc30931fb8c05980fb | internal/dhcpd/v6.go |
// RemoveStaticLease removes a static lease. It is safe for concurrent use.
func (s *v6Server) RemoveStaticLease(l Lease) (err error) {
defer agherr.Annotate("dhcpv6: %w", &err)
| <mask> s.conf.notify(LeaseChangedAddedStatic)
<mask> return nil
<mask> }
<mask>
<mask> // RemoveStaticLease - remove a static lease
<mask> func (s *v6Server) RemoveStaticLease(l Lease) error {
<mask> if len(l.IP) != 16 {
<mask> return fmt.Errorf("invalid IP")
<mask> }
<mask> if len(l.HWAddr) != 6 {
<... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfc7e16d84037fab30116fcc30931fb8c05980fb | internal/dhcpd/v6.go |
err = aghnet.ValidateHardwareAddress(l.HWAddr)
if err != nil {
return fmt.Errorf("validating lease: %w", err) | <mask> func (s *v6Server) RemoveStaticLease(l Lease) error {
<mask> if len(l.IP) != 16 {
<mask> return fmt.Errorf("invalid IP")
<mask> }
<mask> if len(l.HWAddr) != 6 {
<mask> return fmt.Errorf("invalid MAC")
<mask> }
<mask>
<mask> s.leasesLock.Lock()
<mask> err := s.rmLease(l)
<mask> if err != ni... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfc7e16d84037fab30116fcc30931fb8c05980fb | internal/dhcpd/v6.go |
err = s.rmLease(l) | <mask> return fmt.Errorf("invalid MAC")
<mask> }
<mask>
<mask> s.leasesLock.Lock()
<mask> err := s.rmLease(l)
<mask> if err != nil {
<mask> s.leasesLock.Unlock()
<mask> return err
<mask> }
<mask> s.conf.notify(LeaseChangedDBStore)
</s> Pull request: dhcpd: do not assume mac addrs of 6 bytes
Clo... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfc7e16d84037fab30116fcc30931fb8c05980fb | internal/dhcpd/v6.go |
l := Lease{
HWAddr: make([]byte, len(mac)),
}
| <mask> }
<mask>
<mask> // Reserve lease for MAC
<mask> func (s *v6Server) reserveLease(mac net.HardwareAddr) *Lease {
<mask> l := Lease{}
<mask> l.HWAddr = make([]byte, 6)
<mask> copy(l.HWAddr, mac)
<mask>
<mask> s.leasesLock.Lock()
<mask> defer s.leasesLock.Unlock()
<mask>
</s> Pull request: dhcpd:... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfc7e16d84037fab30116fcc30931fb8c05980fb | internal/dhcpd/v6.go |
func (s *v6Server) Start() (err error) {
defer agherr.Annotate("dhcpv6: %w", &err)
| <mask> return s.ra.Init()
<mask> }
<mask>
<mask> // Start starts the IPv6 DHCP server.
<mask> func (s *v6Server) Start() error {
<mask> if !s.conf.Enabled {
<mask> return nil
<mask> }
<mask>
<mask> ifaceName := s.conf.InterfaceName
</s> Pull request: dhcpd: do not assume mac addrs of 6 bytes
Closes ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfc7e16d84037fab30116fcc30931fb8c05980fb | internal/dhcpd/v6.go |
return fmt.Errorf("finding interface %s by name: %w", ifaceName, err) | <mask>
<mask> ifaceName := s.conf.InterfaceName
<mask> iface, err := net.InterfaceByName(ifaceName)
<mask> if err != nil {
<mask> return fmt.Errorf("dhcpv6: finding interface %s by name: %w", ifaceName, err)
<mask> }
<mask>
<mask> log.Debug("dhcpv6: starting...")
<mask>
<mask> dnsIPAddrs, err := if... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfc7e16d84037fab30116fcc30931fb8c05980fb | internal/dhcpd/v6.go |
return fmt.Errorf("interface %s: %w", ifaceName, err) | <mask> log.Debug("dhcpv6: starting...")
<mask>
<mask> dnsIPAddrs, err := ifaceDNSIPAddrs(iface, ipVersion6, defaultMaxAttempts, defaultBackoff)
<mask> if err != nil {
<mask> return fmt.Errorf("dhcpv6: interface %s: %w", ifaceName, err)
<mask> }
<mask>
<mask> if len(dnsIPAddrs) == 0 {
<mask> // No av... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfc7e16d84037fab30116fcc30931fb8c05980fb | internal/dhcpd/v6.go |
log.Debug("not starting dhcpv6 server due to ra_slaac_only=true")
| <mask> }
<mask>
<mask> // don't initialize DHCPv6 server if we must force the clients to use SLAAC
<mask> if s.conf.RASLAACOnly {
<mask> log.Debug("DHCPv6: not starting DHCPv6 server due to ra_slaac_only=true")
<mask> return nil
<mask> }
<mask>
<mask> log.Debug("dhcpv6: listening...")
<mask>
</s>... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfc7e16d84037fab30116fcc30931fb8c05980fb | internal/dhcpd/v6.go |
err = aghnet.ValidateHardwareAddress(iface.HardwareAddr)
if err != nil {
return fmt.Errorf("validating interface %s: %w", iface.Name, err) | <mask> }
<mask>
<mask> log.Debug("dhcpv6: listening...")
<mask>
<mask> if len(iface.HardwareAddr) != 6 {
<mask> return fmt.Errorf("dhcpv6: invalid MAC %s", iface.HardwareAddr)
<mask> }
<mask> s.sid = dhcpv6.Duid{
<mask> Type: dhcpv6.DUID_LLT,
<mask> HwType: iana.HWTypeEthernet,
<... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfc7e16d84037fab30116fcc30931fb8c05980fb | internal/dhcpd/v6.go |
log.Error("dhcpv6: srv.Serve: %s", err) | <mask> }
<mask>
<mask> go func() {
<mask> err = s.srv.Serve()
<mask> log.Debug("DHCPv6: srv.Serve: %s", err)
<mask> }()
<mask>
<mask> return nil
<mask> }
<mask>
</s> Pull request: dhcpd: do not assume mac addrs of 6 bytes
Closes #2828.
Squashed commit of the following:
commit 26c6cf81c32469e1c4... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfc7e16d84037fab30116fcc30931fb8c05980fb | internal/dhcpd/v6.go |
"crypto/x509" | <mask> package dnsforward
<mask>
<mask> import (
<mask> "crypto/tls"
<mask> "fmt"
<mask> "net"
<mask> "net/http"
<mask> "runtime"
<mask> "sort"
</s> + DNS: TLS handshake: terminate handshake on bad SNI </s> remove Certificates: []tls.Certificate{keypair},
MinVersion: tls.VersionTLS12,
</s> add... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfd1f3b6506e45ae59e90d012e0be5c2dc0b5261 | dnsforward/dnsforward.go |
"sort" | <mask> "fmt"
<mask> "net"
<mask> "net/http"
<mask> "runtime"
<mask> "strings"
<mask> "sync"
<mask> "time"
<mask>
</s> + DNS: TLS handshake: terminate handshake on bad SNI </s> remove Certificates: []tls.Certificate{keypair},
MinVersion: tls.VersionTLS12,
</s> add GetCertificate: s.onGetCert... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfd1f3b6506e45ae59e90d012e0be5c2dc0b5261 | dnsforward/dnsforward.go |
"github.com/AdguardTeam/golibs/utils" | <mask> "github.com/AdguardTeam/dnsproxy/upstream"
<mask> "github.com/AdguardTeam/golibs/log"
<mask> "github.com/joomcode/errorx"
<mask> "github.com/miekg/dns"
<mask> )
<mask>
<mask> // DefaultTimeout is the default upstream timeout
<mask> const DefaultTimeout = 10 * time.Second
</s> + DNS: TLS handshake: ... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfd1f3b6506e45ae59e90d012e0be5c2dc0b5261 | dnsforward/dnsforward.go |
StrictSNICheck bool `yaml:"strict_sni_check" json:"-"` // Reject connection if the client uses server name (in SNI) that doesn't match the certificate | <mask>
<mask> // TLSConfig is the TLS configuration for HTTPS, DNS-over-HTTPS, and DNS-over-TLS
<mask> type TLSConfig struct {
<mask> TLSListenAddr *net.TCPAddr `yaml:"-" json:"-"`
<mask> CertificateChain string `yaml:"certificate_chain" json:"certificate_chain"` // PEM-encoded certificates chain
<mas... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfd1f3b6506e45ae59e90d012e0be5c2dc0b5261 | dnsforward/dnsforward.go |
cert tls.Certificate // nolint(structcheck) - linter thinks that this field is unused, while TLSConfig is directly included into ServerConfig
dnsNames []string // nolint(structcheck) // DNS names from certificate (SAN) or CN value from Subject | <mask> CertificateChainData []byte `yaml:"-" json:"-"`
<mask> PrivateKeyData []byte `yaml:"-" json:"-"`
<mask> }
<mask>
<mask> // ServerConfig represents server configuration.
<mask> // The zero ServerConfig is empty and ready for use.
<mask> type ServerConfig struct {
<mask> UDPListenAddr ... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfd1f3b6506e45ae59e90d012e0be5c2dc0b5261 | dnsforward/dnsforward.go |
// nolint(gocyclo) | <mask> return err
<mask> }
<mask>
<mask> // Prepare the object
<mask> func (s *Server) Prepare(config *ServerConfig) error {
<mask> if config != nil {
<mask> s.conf = *config
<mask> if s.conf.BlockingMode == "custom_ip" {
<mask> s.conf.BlockingIPAddrv4 = net.ParseIP(s.conf.BlockingIPv4)
</s> + DNS: ... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfd1f3b6506e45ae59e90d012e0be5c2dc0b5261 | dnsforward/dnsforward.go |
s.conf.cert, err = tls.X509KeyPair(s.conf.CertificateChainData, s.conf.PrivateKeyData) | <mask> }
<mask>
<mask> if s.conf.TLSListenAddr != nil && len(s.conf.CertificateChainData) != 0 && len(s.conf.PrivateKeyData) != 0 {
<mask> proxyConfig.TLSListenAddr = s.conf.TLSListenAddr
<mask> keypair, err := tls.X509KeyPair(s.conf.CertificateChainData, s.conf.PrivateKeyData)
<mask> if err != nil {
<m... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfd1f3b6506e45ae59e90d012e0be5c2dc0b5261 | dnsforward/dnsforward.go |
if s.conf.StrictSNICheck {
x, err := x509.ParseCertificate(s.conf.cert.Certificate[0])
if err != nil {
return errorx.Decorate(err, "x509.ParseCertificate(): %s", err)
}
if len(x.DNSNames) != 0 {
s.conf.dnsNames = x.DNSNames
log.Debug("DNS: using DNS names from certificate's SAN: %v", x.DNSName... | <mask> s.conf.cert, err = tls.X509KeyPair(s.conf.CertificateChainData, s.conf.PrivateKeyData)
<mask> if err != nil {
<mask> return errorx.Decorate(err, "Failed to parse TLS keypair")
<mask> }
<mask> proxyConfig.TLSConfig = &tls.Config{
<mask> GetCertificate: s.onGetCertificate,
<mask> MinVersion... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfd1f3b6506e45ae59e90d012e0be5c2dc0b5261 | dnsforward/dnsforward.go |
GetCertificate: s.onGetCertificate,
MinVersion: tls.VersionTLS12, | <mask> if err != nil {
<mask> return errorx.Decorate(err, "Failed to parse TLS keypair")
<mask> }
<mask> proxyConfig.TLSConfig = &tls.Config{
<mask> Certificates: []tls.Certificate{keypair},
<mask> MinVersion: tls.VersionTLS12,
<mask> }
<mask> }
<mask>
<mask> if len(proxyConfig.Upstreams... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfd1f3b6506e45ae59e90d012e0be5c2dc0b5261 | dnsforward/dnsforward.go |
"sort" | <mask> "encoding/pem"
<mask> "math/big"
<mask> "net"
<mask> "sync"
<mask> "testing"
<mask> "time"
<mask>
<mask> "github.com/AdguardTeam/AdGuardHome/dnsfilter"
</s> + DNS: TLS handshake: terminate handshake on bad SNI </s> remove Certificates: []tls.Certificate{keypair},
MinVersion: tls.VersionT... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/bfd1f3b6506e45ae59e90d012e0be5c2dc0b5261 | dnsforward/dnsforward_test.go |
const { dashboard, encryption } = this.props; | <mask> });
<mask> }
<mask>
<mask> render() {
<mask> const { dashboard } = this.props;
<mask> const updateAvailable =
<mask> !dashboard.processingVersions &&
<mask> dashboard.isCoreRunning &&
<mask> dashboard.isUpdateAvailable;
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/c025c845d200be5e6e5a08f86c6512b7740f876e | client/src/components/App/index.js |
const isExpiringCertificate = !encryption.processing && encryption.warning; | <mask> const updateAvailable =
<mask> !dashboard.processingVersions &&
<mask> dashboard.isCoreRunning &&
<mask> dashboard.isUpdateAvailable;
<mask> const isExpiringCertificate = false;
<mask>
<mask> return (
<mask> <HashRouter hashType='no... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/c025c845d200be5e6e5a08f86c6512b7740f876e | client/src/components/App/index.js |
import React, { Fragment } from 'react'; | <mask> import React from 'react';
<mask> import PropTypes from 'prop-types';
<mask> import { Field, reduxForm } from 'redux-form';
<mask> import { Trans, withNamespaces } from 'react-i18next';
<mask> import flow from 'lodash/flow';
<mask>
</s> Show random status and warning </s> remove const { dashboard... | [
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/c025c845d200be5e6e5a08f86c6512b7740f876e | client/src/components/Settings/Encryption/Form.js |
statusCert,
statusKey, | <mask> handleSubmit,
<mask> invalid,
<mask> submitting,
<mask> processing,
<mask> } = props;
<mask>
<mask> return (
<mask> <form onSubmit={handleSubmit}>
<mask> <div className="row">
</s> Show random status and warning </s> remove const isEx... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/c025c845d200be5e6e5a08f86c6512b7740f876e | client/src/components/Settings/Encryption/Form.js |
{statusCert &&
<Fragment>
<div className="form__label form__label--bold">
<Trans>encryption_status</Trans>:
</div>
... | <mask> placeholder={t('encryption_certificates_input')}
<mask> validate={[required]}
<mask> />
<mask> <div className="form__status">
<mask> <div className="form__label form__label--bo... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/c025c845d200be5e6e5a08f86c6512b7740f876e | client/src/components/Settings/Encryption/Form.js |
</div> */} | <mask> <div>
<mask> <Trans values={{ date: '2022-01-01' }}>
<mask> encryption_expire
<mask> </Trans>
<mask> </div>
<mask> </div>
<mas... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/c025c845d200be5e6e5a08f86c6512b7740f876e | client/src/components/Settings/Encryption/Form.js |
{statusKey &&
<Fragment>
<div className="form__label form__label--bold">
<Trans>encryption_status</Trans>:
</div>
... | <mask> placeholder="Copy/paste your PEM-encoded private key for your cerficate here."
<mask> validate={[required]}
<mask> />
<mask> <div className="form__status">
<mask> <div classNam... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/c025c845d200be5e6e5a08f86c6512b7740f876e | client/src/components/Settings/Encryption/Form.js |
statusCert: PropTypes.string,
statusKey: PropTypes.string, | <mask> invalid: PropTypes.bool.isRequired,
<mask> initialValues: PropTypes.object.isRequired,
<mask> processing: PropTypes.bool.isRequired,
<mask> t: PropTypes.func.isRequired,
<mask> };
<mask>
<mask> export default flow([
<mask> withNamespaces(),
<mask> reduxForm({
</s> Show random s... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/c025c845d200be5e6e5a08f86c6512b7740f876e | client/src/components/Settings/Encryption/Form.js |
status_cert: statusCert,
status_key: statusKey, | <mask> const {
<mask> processing,
<mask> processingConfig,
<mask> ...values
<mask> } = encryption;
<mask>
<mask> return (
</s> Show random status and warning </s> remove const { dashboard } = this.props;
</s> add const { dashboard, en... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/c025c845d200be5e6e5a08f86c6512b7740f876e | client/src/components/Settings/Encryption/index.js |
statusCert={statusCert}
statusKey={statusKey} | <mask> initialValues={{ ...values }}
<mask> processing={encryption.processingConfig}
<mask> onSubmit={this.handleFormSubmit}
<mask> />
<mask> </Card>
<mask> }
<mask> ... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/c025c845d200be5e6e5a08f86c6512b7740f876e | client/src/components/Settings/Encryption/index.js |
<mask> import (
<mask> "bytes"
<mask> "compress/gzip"
<mask> "encoding/json"
<mask> "fmt"
<mask> "io"
<mask> "os"
<mask> "time"
<mask>
<mask> "github.com/AdguardTeam/golibs/log"
</s> - querylog: writing to a file could stop randomly </s> remove func checkBuffer(buffer []*logEntry, b bytes.Buffer) er... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/c04705364663e7141d39764fce8fd1dc1a4633ab | querylog/querylog_file.go | |
<mask> "os"
<mask> "time"
<mask>
<mask> "github.com/AdguardTeam/golibs/log"
<mask> "github.com/go-test/deep"
<mask> )
<mask>
<mask> const enableGzip = false
<mask> const maxEntrySize = 1000
<mask>
</s> - querylog: writing to a file could stop randomly </s> remove err := checkBuffer(buffer, b)
if err... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/c04705364663e7141d39764fce8fd1dc1a4633ab | querylog/querylog_file.go | |
var err error | <mask>
<mask> elapsed := time.Since(start)
<mask> log.Debug("%d elements serialized via json in %v: %d kB, %v/entry, %v/entry", len(buffer), elapsed, b.Len()/1024, float64(b.Len())/float64(len(buffer)), elapsed/time.Duration(len(buffer)))
<mask>
<mask> err := checkBuffer(buffer, b)
<mask> if err != nil {
<... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/c04705364663e7141d39764fce8fd1dc1a4633ab | querylog/querylog_file.go |
<mask>
<mask> return nil
<mask> }
<mask>
<mask> func checkBuffer(buffer []*logEntry, b bytes.Buffer) error {
<mask> l := len(buffer)
<mask> d := json.NewDecoder(&b)
<mask>
<mask> i := 0
<mask> for d.More() {
<mask> entry := &logEntry{}
<mask> err := d.Decode(entry)
<mask> if err != nil {
<ma... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"re... | https://github.com/AdguardTeam/AdGuardHome/commit/c04705364663e7141d39764fce8fd1dc1a4633ab | querylog/querylog_file.go | |
'GO_VERSION': '1.15' | <mask> 'name': 'build'
<mask>
<mask> 'env':
<mask> 'GO_VERSION': '1.14'
<mask> 'NODE_VERSION': '14'
<mask>
<mask> 'on':
<mask> 'push':
<mask> 'branches':
</s> Pull request: all: update go and backend tools
Updates #2275.
Squashed commit of the following:
commit f24c26cd2b49fac00a581936da4ccb13c... | [
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/c08bf86b710e97d5506774fda26358146044edcc | .github/workflows/build.yml |
GOPROXY = https://goproxy.io|https://goproxy.cn|direct | <mask> CLIENT_DIR = client
<mask> COMMIT = $$(git rev-parse --short HEAD)
<mask> DIST_DIR = dist
<mask> GO = go
<mask> # TODO(a.garipov): Add more default proxies using pipes after update to
<mask> # Go 1.15.
<mask> #
<mask> # GOPROXY = https://goproxy.io|https://goproxy.cn|direct
<mask> GOPROXY = https://gopr... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/c08bf86b710e97d5506774fda26358146044edcc | Makefile |
go 1.15 | <mask> module github.com/AdguardTeam/AdGuardHome
<mask>
<mask> go 1.14
<mask>
<mask> require (
<mask> github.com/AdguardTeam/dnsproxy v0.35.5
<mask> github.com/AdguardTeam/golibs v0.4.4
<mask> github.com/AdguardTeam/urlfilter v0.14.3
</s> Pull request: all: update go and backend tools
Updates #2275.
Squ... | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/c08bf86b710e97d5506774fda26358146044edcc | go.mod |
github.com/ameshkov/dnscrypt/v2 v2.0.3 | <mask> github.com/AdguardTeam/dnsproxy v0.35.5
<mask> github.com/AdguardTeam/golibs v0.4.4
<mask> github.com/AdguardTeam/urlfilter v0.14.3
<mask> github.com/NYTimes/gziphandler v1.1.1
<mask> github.com/ameshkov/dnscrypt/v2 v2.0.1
<mask> github.com/digineo/go-ipset/v2 v2.2.1
<mask> github.com/fsnotify/fsno... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/c08bf86b710e97d5506774fda26358146044edcc | go.mod |
github.com/go-ping/ping v0.0.0-20210216210419-25d1413fb7bb | <mask> github.com/NYTimes/gziphandler v1.1.1
<mask> github.com/ameshkov/dnscrypt/v2 v2.0.1
<mask> github.com/digineo/go-ipset/v2 v2.2.1
<mask> github.com/fsnotify/fsnotify v1.4.9
<mask> github.com/go-ping/ping v0.0.0-20201115131931-3300c582a663
<mask> github.com/gobuffalo/envy v1.9.0 // indirect
<mask> gi... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/c08bf86b710e97d5506774fda26358146044edcc | go.mod |
github.com/google/go-cmp v0.5.5 // indirect | <mask> github.com/gobuffalo/packr v1.30.1
<mask> github.com/gobuffalo/packr/v2 v2.8.1 // indirect
<mask> github.com/hugelgupf/socketpair v0.0.0-20190730060125-05d35a94e714
<mask> github.com/insomniacslk/dhcp v0.0.0-20210306224058-018caddcb1eb
<mask> github.com/kardianos/service v1.2.0
<mask> github.com/karr... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/c08bf86b710e97d5506774fda26358146044edcc | go.mod |
github.com/insomniacslk/dhcp v0.0.0-20210306224058-018caddcb1eb | <mask> github.com/gobuffalo/envy v1.9.0 // indirect
<mask> github.com/gobuffalo/packr v1.30.1
<mask> github.com/gobuffalo/packr/v2 v2.8.1 // indirect
<mask> github.com/hugelgupf/socketpair v0.0.0-20190730060125-05d35a94e714
<mask> github.com/insomniacslk/dhcp v0.0.0-20201112113307-4de412bc85d8
<mask> github... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/c08bf86b710e97d5506774fda26358146044edcc | go.mod |
github.com/marten-seemann/qtls-go1-15 v0.1.4 // indirect | <mask> github.com/insomniacslk/dhcp v0.0.0-20210306224058-018caddcb1eb
<mask> github.com/kardianos/service v1.2.0
<mask> github.com/karrick/godirwalk v1.16.1 // indirect
<mask> github.com/lucas-clemente/quic-go v0.19.3
<mask> github.com/mdlayher/ethernet v0.0.0-20190606142754-0394541c37b7
<mask> github.com/... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/c08bf86b710e97d5506774fda26358146044edcc | go.mod |
github.com/mdlayher/netlink v1.4.0 | <mask> github.com/kardianos/service v1.2.0
<mask> github.com/karrick/godirwalk v1.16.1 // indirect
<mask> github.com/lucas-clemente/quic-go v0.19.3
<mask> github.com/mdlayher/ethernet v0.0.0-20190606142754-0394541c37b7
<mask> github.com/mdlayher/netlink v1.1.2-0.20201013204415-ded538f7f4be
<mask> github.com... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/c08bf86b710e97d5506774fda26358146044edcc | go.mod |
github.com/miekg/dns v1.1.40
github.com/rogpeppe/go-internal v1.7.0 // indirect | <mask> github.com/lucas-clemente/quic-go v0.19.3
<mask> github.com/mdlayher/ethernet v0.0.0-20190606142754-0394541c37b7
<mask> github.com/mdlayher/netlink v1.1.2-0.20201013204415-ded538f7f4be
<mask> github.com/mdlayher/raw v0.0.0-20191009151244-50f2db8cc065
<mask> github.com/miekg/dns v1.1.35
<mask> github.... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/c08bf86b710e97d5506774fda26358146044edcc | go.mod |
github.com/sirupsen/logrus v1.8.1 // indirect
github.com/spf13/cobra v1.1.3 // indirect | <mask> github.com/mdlayher/raw v0.0.0-20191009151244-50f2db8cc065
<mask> github.com/miekg/dns v1.1.35
<mask> github.com/rogpeppe/go-internal v1.6.2 // indirect
<mask> github.com/satori/go.uuid v1.2.0
<mask> github.com/sirupsen/logrus v1.7.0 // indirect
<mask> github.com/spf13/cobra v1.1.1 // indirect
<mask... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/c08bf86b710e97d5506774fda26358146044edcc | go.mod |
golang.org/x/crypto v0.0.0-20210220033148-5ea612d1eb83
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
golang.org/x/sys v0.0.0-20210309074719-68d13333faf2
golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d // indirect
golang.org/x/text v0.3.5 ... | <mask> github.com/stretchr/testify v1.6.1
<mask> github.com/ti-mo/netfilter v0.4.0
<mask> github.com/u-root/u-root v7.0.0+incompatible
<mask> go.etcd.io/bbolt v1.3.5
<mask> golang.org/x/crypto v0.0.0-20201217014255-9d1352758620
<mask> golang.org/x/net v0.0.0-20201216054612-986b41b23924
<mask> golang.org/x... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/c08bf86b710e97d5506774fda26358146044edcc | go.mod |
gopkg.in/yaml.v2 v2.4.0
howett.net/plist v0.0.0-20201203080718-1454fab16a06 | <mask> golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9 // indirect
<mask> golang.org/x/sys v0.0.0-20201214210602-f9fddec55a1e
<mask> golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
<mask> gopkg.in/natefinch/lumberjack.v2 v2.0.0
<mask> gopkg.in/yaml.v2 v2.3.0
<mask> howett.net/plist ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/c08bf86b710e97d5506774fda26358146044edcc | go.mod |
github.com/ameshkov/dnscrypt/v2 v2.0.3 h1:PE6VVc8QUMYJv9dTwcDcX5cYXf58XPi1WVPHrLf8MDs=
github.com/ameshkov/dnscrypt/v2 v2.0.3/go.mod h1:nbZnxJt4edIPx2Haa8n2XtC2g5AWcsdQiSuXkNH8eDI= | <mask> github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
<mask> github.com/ameshkov/dnscrypt/v2 v2.0.1 h1:igNVNM6NLBOqYUzHXaDUxn8i+wJXOsosY0/xEBirixA=
<mask> github.com/ameshkov/dnscrypt/v2 v2.0.1/go.mod h1:nbZnxJt4edIPx2Haa8n2XtC2g5AWcsdQiSuXkNH8eD... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/c08bf86b710e97d5506774fda26358146044edcc | go.sum |
github.com/go-ping/ping v0.0.0-20210216210419-25d1413fb7bb h1:2opwLSXqxE0Za64PdpskXuvLYDj/XHQAD8tLcYpSlvY=
github.com/go-ping/ping v0.0.0-20210216210419-25d1413fb7bb/go.mod h1:35JbSyV/BYqHwwRA6Zr1uVDm1637YlNOU61wI797NPI= | <mask> github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE=
<mask> github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk=
<mask> github.com/go-ole/go-ole v1.2.4 h1:nNBDSCOigTSiarFpYE9J/KtEA1IOW4CNeqT9TQDqCxI=
<mask> github.com/go-ole/go-ole v1.... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/c08bf86b710e97d5506774fda26358146044edcc | go.sum |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.