Eugene Bujak
398312cd80
Move installation of /install handlers into a separate optional function
2019-02-06 17:28:08 +03:00
Eugene Bujak
06a28a461d
/install/configure -- Rebind HTTP server when we get new host and port
2019-02-06 17:25:18 +03:00
Eugene Bujak
5abe5af707
/install/configure -- Start DNS server explicitly
2019-02-06 17:22:46 +03:00
Eugene Bujak
daae040f9c
Check if IP:port combinations are possible before returning OK on /install/configure
2019-02-06 17:22:46 +03:00
Eugene Bujak
f2b3c3a14c
/install/get_addresses -- made IP address omitempty
2019-02-06 17:21:23 +03:00
Eugene Bujak
d3e81c47f6
rename /install/ path names to be more fitting
2019-02-06 17:21:23 +03:00
Eugene Bujak
c14aff3dba
/install/get_default_addresses -- Remove subnet suffix from addresses
2019-02-06 17:21:23 +03:00
Eugene Bujak
d97c426646
Fill out port 80 if it's available, otherwise port 3000
2019-02-06 17:21:23 +03:00
Eugene Bujak
34e14930de
/install/get_default_addresses -- now it gives out list of interfaces
2019-02-06 17:21:23 +03:00
Eugene Bujak
302c3a767a
Initial implementation of welcome/firstrun/installer page in go backend
2019-02-06 17:21:23 +03:00
Eugene Bujak
f21aebd1cf
/install/get_default_addresses -- make fields lowercase
2019-02-06 17:17:38 +03:00
Eugene Bujak
c36a7895ad
Add install page API stubs
2019-02-06 17:17:38 +03:00
Andrey Meshkov
ec6b1f7c42
Added golangci-lint configuration and prepared for the integrattion
2019-01-25 20:13:57 +03:00
Andrey Meshkov
d078851246
gometalinter
2019-01-25 20:13:57 +03:00
Andrey Meshkov
246f726115
Fix #502
2019-01-04 21:22:22 +03:00
Eugene Bujak
368e2d1ebd
move log wrapper library outside into hmage/golibs/log
2018-12-29 19:12:45 +03:00
Eugene Bujak
d8802a9709
Use new log wrapper and add more functions to it.
2018-12-29 17:37:18 +03:00
Eugene Bujak
87b3c92f71
Add /dhcp/interfaces API call to list available network interfaces.
2018-12-28 18:26:56 +03:00
Eugene Bujak
9294c9ecb2
Add DHCP API stubs for JS development.
2018-12-28 18:26:56 +03:00
Andrey Meshkov
cc96593ebf
upd to 0.9.3, removed jedist1/xsecretbox from dependencies
2018-12-25 01:59:38 +03:00
Andrey Meshkov
e711f6e5fe
Start using dnsproxy
2018-12-24 15:19:52 +03:00
Eugene Bujak
0f5dd661f5
Add support for bootstrapping upstream DNS servers by hostname.
2018-12-06 00:22:20 +03:00
Eugene Bujak
e31905864b
Get rid of mentions of CoreDNS in code except for upgrading and in readme. Add config upgrade.
2018-12-05 21:08:43 +03:00
Eugene Bujak
f6942213c8
Use dnsforward for checking if upstream DNS server is working.
2018-12-05 19:17:17 +03:00
Eugene Bujak
e357620740
Plug correct stats handler functions.
2018-12-05 16:57:21 +03:00
Eugene Bujak
d27fd0488d
Move filter-related variables, types and methods to filter.go
2018-12-05 16:56:11 +03:00
Eugene Bujak
9c4b791621
coredns reload -> dnsServer.Reconfigure()
2018-12-05 16:56:11 +03:00
Eugene Bujak
ea1353422f
User rules -- hold them as a slice of strings, which is how dns forwarding server will expect them.
2018-12-05 16:54:56 +03:00
Eugene Bujak
6257ff123f
Fix gometalinter warnings
2018-11-28 13:38:19 +03:00
Eugene Bujak
70c5afd6a5
Restore Engrish function names to normal English.
2018-11-28 13:38:19 +03:00
Eugene Bujak
701fd10c1c
Protect against users deleting the filter ID's in the config file.
...
Incidentally, it also simplifies upgrade schema from 0 to 1.
2018-11-28 13:38:19 +03:00
Eugene Bujak
6cb991fe7f
Clean up some code -- reorganize some structs and unexport some consts.
2018-11-28 13:38:19 +03:00
Eugene Bujak
ec7efcc9d6
Move config upgrade to separate upgrade.go
2018-11-28 13:38:19 +03:00
Eugene Bujak
12a8011fb3
Get rid of unnecessary duplicate type coreDnsFilter.
2018-11-27 16:48:57 +03:00
Eugene Bujak
47e2a1004d
Remove IDE-specific noise from source code.
2018-11-27 16:05:43 +03:00
Eugene Bujak
2139bb9c79
Allow querying and changeing i18n language via API.
2018-11-21 20:44:20 +03:00
Andrey Meshkov
2e879896ff
Close test upstream
2018-11-06 00:52:27 +03:00
Andrey Meshkov
451922b858
Added bootstrap DNS to the config file
...
DNS healthcheck now uses the upstream package methods
2018-11-06 00:47:59 +03:00
Andrey Meshkov
484c0ceaff
Upstream plugin prototype
2018-11-01 14:45:32 +03:00
Andrey Meshkov
54bdacdde2
Fix review comments: NextFilterId collisions
2018-10-30 17:16:20 +03:00
Andrey Meshkov
591065aa3a
Added filterId to the querylog
...
Updated the openapi.yaml accordingly
Some minor refactoring/renaming
Fix other review comments
2018-10-30 12:24:59 +03:00
Andrey Meshkov
32d4e80c93
Fix #371 #421
...
Filters are now saved to a file
Also, they're loaded from the file on startup
Filter ID is not passed to the CoreDNS plugin config (server-side AG DNS must be changed accordingly)
Some minor refactoring, unused functions removed
2018-10-30 02:17:24 +03:00
Andrey Meshkov
abb51ddb8a
Add ErrAlreadyExists
2018-10-29 16:17:18 +03:00
A.J. Ruckman
b3ae247520
use keyed fields
2018-10-22 22:51:51 +03:00
A.J. Ruckman
b3840b5790
minor tweaks
2018-10-22 22:51:51 +03:00
Eugene Bujak
5437a9d3a6
Do not use port 8618, it's a leftover from a time when we had two binaries.
...
Should fix 378 but needs testing from users having the problem since couldn't reproduce it here yet.
2018-10-17 18:55:27 +03:00
Eugene Bujak
3e2a3afc52
Rename from 'Adguard DNS' to 'AdGuard Home'.
2018-10-15 16:02:19 +03:00
Eugene Bujak
bad88961e9
WIP -- single binary -- works, replies to DNS, but need to check what got broken
2018-10-12 17:11:57 +03:00
Eugene Bujak
751be05a31
API filtering/add_url -- accept JSON instead of name=value lines
2018-10-11 18:33:56 +03:00
Eugene Bujak
413228e6ec
API backend -- implement ability to turn toggle all protection in one go, helpful to temporarily disable all kinds of filtering
2018-10-10 20:13:03 +03:00