Skip to content

Commit

Permalink
Merge branch 'master' into 2508-ip-conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Jan 13, 2021
2 parents db992a4 + bba7485 commit 9e3fa9a
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 14 deletions.
5 changes: 3 additions & 2 deletions HACKING.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ The rules are mostly sorted in the alphabetical order.
pkg: fix the network error logging issue
```
Where `pkg` is the package where most changes took place. If there are
several such packages, or the change is top-level only, write `all`.
Where `pkg` is the directory or Go package (without the `internal/` part)
where most changes took place. If there are several such packages, or the
change is top-level only, write `all`.
* Keep your commit messages, including headers, to eighty (**80**) columns.
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

AdGuard Home is a network-wide software for blocking ads & tracking. After you set it up, it'll cover ALL your home devices, and you don't need any client-side software for that.

It operates as a DNS server that re-routes tracking domains to a "black hole," thus preventing your devices from connecting to those servers. It's based on software we use for our public [AdGuard DNS](https://adguard.com/en/adguard-dns/overview.html) servers -- both share a lot of common code.
It operates as a DNS server that re-routes tracking domains to a "black hole", thus preventing your devices from connecting to those servers. It's based on software we use for our public [AdGuard DNS](https://adguard.com/en/adguard-dns/overview.html) servers -- both share a lot of common code.

* [Getting Started](#getting-started)
* [Comparing AdGuard Home to other solutions](#comparison)
Expand Down Expand Up @@ -170,7 +170,8 @@ You will need this to build AdGuard Home:

* [go](https://golang.org/dl/) v1.14 or later.
* [node.js](https://nodejs.org/en/download/) v10.16.2 or later.
* [npm](https://www.npmjs.com/) v6.14 or later.
* [npm](https://www.npmjs.com/) v6.14 or later (temporary requirement, TODO: remove when redesign is finished).
* [yarn](https://yarnpkg.com/) v1.22.5 or later.

### Building

Expand Down
2 changes: 1 addition & 1 deletion internal/home/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func initConfig() {
config.DHCP.Conf4.ICMPTimeout = 1000
config.DHCP.Conf6.LeaseDuration = 86400

if updateChannel == "none" || updateChannel == "edge" {
if updateChannel == "none" || updateChannel == "edge" || updateChannel == "development" {
config.BetaBindPort = 3001
}
}
Expand Down
8 changes: 5 additions & 3 deletions internal/home/controlinstall.go
Original file line number Diff line number Diff line change
Expand Up @@ -371,9 +371,11 @@ func (web *Web) handleInstallConfigure(w http.ResponseWriter, r *http.Request) {
go func() {
_ = web.httpServer.Shutdown(context.TODO())
}()
go func() {
_ = web.httpServerBeta.Shutdown(context.TODO())
}()
if web.httpServerBeta != nil {
go func() {
_ = web.httpServerBeta.Shutdown(context.TODO())
}()
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2324,7 +2324,7 @@
'type': 'object'
'description': 'Login request data'
'properties':
'username':
'name':
'type': 'string'
'description': 'User name'
'password':
Expand Down
6 changes: 3 additions & 3 deletions scripts/make/build-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ build() {
case "$build_os"
in
('darwin'|'windows')
build_archive="./${dist}/${build_ar}.zip"
zip -9 -q "$build_archive" "$build_dir"
build_archive="${PWD}/${dist}/${build_ar}.zip"
( cd "${dist}/${1}" && zip -9 -q -r "$build_archive" "./AdGuardHome" )
;;
(*)
build_archive="./${dist}/${build_ar}.tar.gz"
Expand Down Expand Up @@ -349,7 +349,7 @@ echo "{
echo " \"download_${platform}\": \"${version_download_url}/${filename}\"," >> "$version_json"
fi

: "$(( i++ ))"
i="$(( i + 1 ))"
done
)

Expand Down
6 changes: 4 additions & 2 deletions scripts/make/go-lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,12 @@ nilness ./...
# shadow --strict ./...

# TODO(a.garipov): Enable errcheck fully after handling all errors,
# including the deferred ones, properly. Also, perhaps, enable --blank.
# including the deferred and generated ones, properly. Also, perhaps,
# enable --blank.
#
# errcheck ./...
exit_on_output sh -c '
errcheck --asserts ./... |\
errcheck --asserts --ignoregenerated ./... |\
{ grep -e "defer" -e "_test\.go:" -v || exit 0; }
'

Expand Down

0 comments on commit 9e3fa9a

Please sign in to comment.